MyTetra Share
Делитесь знаниями!
wx.Frame
Время создания: 15.05.2017 23:25
Раздел: Python - wx - classes - wx - Frame
Запись: xintrea/mytetra_db_mcold/master/base/14948799183vgelzecy6/text.html на raw.githubusercontent.com
import wx


class MyFrame(wx.Frame):
def __init__(self, parent, title=""):
super(MyFrame, self).__init__(parent, title=title)

# Set an application icon
self.SetIcon(wx.Icon("appIcon.png"))

# Set the panel
self.panel = wx.Panel(self)

class MyApp(wx.App):
def OnInit(self):
self.frame = MyFrame(None, title="Main Frame")
self.frame.Show()
return True


if __name__ == "__main__":
app = MyApp(
False)
app.MainLoop()
 
MyTetra Share v.0.59
Яндекс индекс цитирования