[Tutor] [wxPython-users] Loading default values for text box and choice
Varsha Purohit
varsha.purohit at gmail.com
Thu Nov 15 03:30:58 CET 2007
Hello,
I wanted to know how to load text box with the default value....
Eg. In these lines there is a static text and a text box created ...
and if i want to load value '3' in the text box how can i do that ??
wx.StaticText(panel, -1, "Random Seed", (550,200))
wx.TextCtrl(panel,-1,pos=(620,200),size=(50,20))
and also in the Choice box
simpleList2 = ['Unbiased Attitude ','Biased Attitude']
wx.Choice(panel, -1, (670,570),choices=simpleList2)
if i want to load the first value of simplelist2 in the choice box by
default when the application runs...
thanks in advance,
--
Varsha Purohit,
More information about the Tutor
mailing list