/usr/lib/python-pyo/snippets/Interface/NewFrame is in python-pyo 0.7-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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'}
|