Commit a0e6c61c authored by kliment's avatar kliment

Fix window size on Windows

parent 220ce936
...@@ -6,7 +6,11 @@ except: ...@@ -6,7 +6,11 @@ except:
raise raise
import printcore, os, sys, glob, time, threading, traceback, StringIO import printcore, os, sys, glob, time, threading, traceback, StringIO
thread=threading.Thread thread=threading.Thread
winsize=(800,500)
winssize=(800,120)
if os.name=="nt": if os.name=="nt":
winsize=(800,530)
winssize=(800,140)
try: try:
import _winreg import _winreg
except: except:
...@@ -32,7 +36,7 @@ class Tee(object): ...@@ -32,7 +36,7 @@ class Tee(object):
class PronterWindow(wx.Frame,pronsole.pronsole): class PronterWindow(wx.Frame,pronsole.pronsole):
def __init__(self, filename=None,size=(800,500)): def __init__(self, filename=None,size=winsize):
self.filename=filename self.filename=filename
os.putenv("UBUNTU_MENUPROXY","0") os.putenv("UBUNTU_MENUPROXY","0")
wx.Frame.__init__(self,None,title="Printer Interface",size=size); wx.Frame.__init__(self,None,title="Printer Interface",size=size);
...@@ -287,12 +291,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -287,12 +291,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def toggleview(self,e): def toggleview(self,e):
if(self.mini): if(self.mini):
self.mini=False self.mini=False
self.SetSize((800,500)) self.SetSize(winsize)
self.minibtn.SetLabel("Mini mode") self.minibtn.SetLabel("Mini mode")
else: else:
self.mini=True self.mini=True
self.SetSize((800,120)) self.SetSize(winssize)
self.minibtn.SetLabel("Full mode") self.minibtn.SetLabel("Full mode")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment