By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,661 Members | 1,284 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,661 IT Pros & Developers. It's quick & easy.

wx.TextCtrl - can't insert text!

P: 1

I am using the python27, 64bit version. I have added textCtrl, trying to get the user input, but with no success..

The text box is disabled. Please advice.
My code:
Expand|Select|Wrap|Line Numbers
  1. self.nameTextCtrl = wx.TextCtrl(self)
  2. self.nameTextCtrl.Enable(True)
  3. self.nameTextCtrl.SetEditable(True)
  4. self.nameTextCtrl.SetDimensions(x=150, y=60, width=150, height=-1)
Jan 11 '13 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
Make sure you are passing the proper parent to the constructor.
Expand|Select|Wrap|Line Numbers
  1. panel = wx.Panel(self, -1)
  2. self.nameTextCtrl = wx.TextCtrl(panel)
Jan 11 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.