wxpython先放棄class看看計算機是不是正常
2020-03-13 16:04 作者:一心想當網紅的李老師 | 我要投稿
import wx
? ? ??
app = wx.App()
win = FirstFrame(None)
win.Show()
loadButton = wx.Button(win, label = '打開',pos = (225,5),size = (80,25))
saveButton = wx.Button(win, label = '保存',pos = (315,5),size = (80,25))
filename = wx.TextCtrl(win, pos = (5,5),size = (210,25))
contents = wx.TextCtrl(win, pos = (5,35),size = (390,260), style = wx.TE_MULTILINE | wx.HSCROLL)
app.MainLoop()
運行正常,看來還是我的思維問題。計算機可以運行wxpython。
標簽: