Hi
I need to design a tkinter widget where i should have a browse option button as you see in all windows application to select a file from my machine.
Also i need to select an integer from some dropdown box.
How can i implement this... I m donewith the backend python coding.. but i need help for the front end..
I tried using the code which i got from google..
its like
from ViewerFramework .gui import InputFormDescr
from ViewerFramework .customizedWidg ets import SaveButton
idf = InputFormDescr( title = 'SaveButton')
#button description
buttonwcfg = {'text':'Save', 'bg':'Red',
'fg':'Black','b orderwidth':5}
idf.append({'wi dgetType':SaveB utton,
'name':'save',
'wcfg':{'button Type':Tkinter.B utton,
'title':'Save In File ...',
'types':[('All Files','*.*'),
('Python Files','*.py')],
'widgetwcfg':bu ttonwcfg},
'gridcfg':{} })
val = self.vf.getUser Input(idf)
But i am am getting error like
"ImportErro r: No module named ViewerFramework .gui"
i m not sure how this progrm works...
please help me in coding these...
Thanks,
Anil Roy
I need to design a tkinter widget where i should have a browse option button as you see in all windows application to select a file from my machine.
Also i need to select an integer from some dropdown box.
How can i implement this... I m donewith the backend python coding.. but i need help for the front end..
I tried using the code which i got from google..
its like
from ViewerFramework .gui import InputFormDescr
from ViewerFramework .customizedWidg ets import SaveButton
idf = InputFormDescr( title = 'SaveButton')
#button description
buttonwcfg = {'text':'Save', 'bg':'Red',
'fg':'Black','b orderwidth':5}
idf.append({'wi dgetType':SaveB utton,
'name':'save',
'wcfg':{'button Type':Tkinter.B utton,
'title':'Save In File ...',
'types':[('All Files','*.*'),
('Python Files','*.py')],
'widgetwcfg':bu ttonwcfg},
'gridcfg':{} })
val = self.vf.getUser Input(idf)
But i am am getting error like
"ImportErro r: No module named ViewerFramework .gui"
i m not sure how this progrm works...
please help me in coding these...
Thanks,
Anil Roy
Comment