Minor enhancement in python console: remove margins around the client area. simplify code.
This commit is contained in:
@@ -233,21 +233,11 @@ wxWindow* CreatePythonShellWindow( wxWindow* parent )
|
||||
"import wx\n"
|
||||
"from wx.py import shell, version\n"
|
||||
"\n"
|
||||
"class PyCrustPanel(wx.Panel):\n"
|
||||
"\tdef __init__(self, parent):\n"
|
||||
"\t\twx.Panel.__init__(self, parent, -1, style=wx.SUNKEN_BORDER)\n"
|
||||
"\t\t\n"
|
||||
"\t\t\n"
|
||||
"\t\tintro = \"Welcome To PyCrust %s - KiCAD Python Shell\" % version.VERSION\n"
|
||||
"\t\tpycrust = shell.Shell(self, -1, introText=intro)\n"
|
||||
"\t\t\n"
|
||||
"\t\tsizer = wx.BoxSizer(wx.VERTICAL)\n\n"
|
||||
"\t\tsizer.Add(pycrust, 1, wx.EXPAND|wx.BOTTOM|wx.LEFT|wx.RIGHT, 10)\n\n"
|
||||
"\t\tself.SetSizer(sizer)\n\n"
|
||||
"intro = \"PyCrust %s - KiCAD Python Shell\" % version.VERSION\n"
|
||||
"\n"
|
||||
"def makeWindow(parent):\n"
|
||||
" shell_window = PyCrustPanel(parent)\n"
|
||||
" return shell_window\n"
|
||||
" pycrust = shell.Shell(parent, -1, introText=intro)\n"
|
||||
" return pycrust\n"
|
||||
"\n";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user