私は wxPython 2.8 と Pycharm 1.2.1 を学んでいます。(Python バージョン - 2.6.6、Windows XP)。私の最初のプログラム ( http://wiki.wxpython.org/Getting%20Started#A_First_Application:_.22Hello.2C_World.22から):
# hi.py
import wx
class MyFrame(wx.Frame):
""" We simply derive a new class of Frame. """
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title, size=(200,100))
self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE)
self.Show(True)
app = wx.App(False)
frame = MyFrame(None, 'Small editor')
app.MainLoop()
python hi.py のように起動すると問題なく動作します。しかし、PyCharm から開始すると、フレームにコントロール TextCtrl がありません。なんでそうなの?