def LoadWindowSize(section, state=''):
 if state:
  state = (state + ' ')
 left = win32ui.GetProfileVal(section, (state + 'left'), 0)
 top = win32ui.GetProfileVal(section, (state + 'top'), 0)
 right = win32ui.GetProfileVal(section, (state + 'right'), 0)
 bottom = win32ui.GetProfileVal(section, (state + 'bottom'), 0)
 return (left, top, right, bottom)

def LoadWindowSize ( section , state = '' ) : if state : state = ( state + ' ' ) left = win32ui . GetProfileVal ( section , ( state + 'left' ) , 0 ) top = win32ui . GetProfileVal ( section , ( state + 'top' ) , 0 ) right = win32ui . GetProfileVal ( section , ( state + 'right' ) , 0 ) bottom = win32ui . GetProfileVal ( section , ( state + 'bottom' ) , 0 ) return ( left , top , right , bottom )
loads a section from an ini file .