470,863 Members | 1,185 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,863 developers. It's quick & easy.

wx.TextCtrl - can't insert text!

Hi,

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
1 2466
bvdet
2,851 Expert Mod 2GB
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.

Similar topics

reply views Thread by ingvald | last post: by
2 posts views Thread by Thomas | last post: by
2 posts views Thread by Lloyd | last post: by
1 post views Thread by Carlos Lozano | last post: by
2 posts views Thread by Matt Tapia | last post: by
6 posts views Thread by Lelle | last post: by
1 post views Thread by Jonathan Smith | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.