How do I put in default values in my def textbox code attached -
jloyzaga
0
Newbie Poster
Recommended Answers
Jump to Postif you are using wx then just go:
text.SetValue("Default Value Here")
Where text is your wx.TextCtrl
Jump to PostThis will do the adding of the default value:
self.inputTxtThree = self.textbox('Starting at what hour? 6? 24 hr clock-\n or immediate start just accept 99.','99', bmp) def textbox(self, label_str, default_value= "99", bmp = None): if bmp: bitmap = wx.StaticBitmap(self.panel, wx.ID_ANY, bmp) #label = wx.StaticText(self.panel,wx.ID_ANY, label_str,style=wx.TE_MULTILINE) label = …
All 6 Replies
lllllIllIlllI
178
Veteran Poster
jloyzaga
0
Newbie Poster
lllllIllIlllI
178
Veteran Poster
jloyzaga
0
Newbie Poster
lllllIllIlllI
178
Veteran Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.