File: NewFrame

package info (click to toggle)
python-pyo 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 137,415; python: 135,293; makefile: 390; cpp: 242; sh: 163
file content (1 line) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (9)
1
snippet = {'shortcut': u'Shift-Alt-5', 'value': u'class MyFrame(wx.Frame):\n    def __init__(self, parent, id=-1, title="Frame Title", pos=(25,25), size=(500,400)):\n        wx.Frame.__init__(self, parent, id, title, pos, size)\n        self.panel = wx.Panel(self)\n        self.panel.SetBackgroundColour("#DDDDDD")\n        self.box = wx.BoxSizer(wx.VERTICAL)\n        # Create objects here...\n        self.panel.SetSizer(self.box)\n        self.Show()\n'}