Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
a0e6c61c
Commit
a0e6c61c
authored
Jun 09, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix window size on Windows
parent
220ce936
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
pronterface.py
pronterface.py
+7
-3
No files found.
pronterface.py
View file @
a0e6c61c
...
...
@@ -6,7 +6,11 @@ except:
raise
import
printcore
,
os
,
sys
,
glob
,
time
,
threading
,
traceback
,
StringIO
thread
=
threading
.
Thread
winsize
=
(
800
,
500
)
winssize
=
(
800
,
120
)
if
os
.
name
==
"nt"
:
winsize
=
(
800
,
530
)
winssize
=
(
800
,
140
)
try
:
import
_winreg
except
:
...
...
@@ -32,7 +36,7 @@ class Tee(object):
class
PronterWindow
(
wx
.
Frame
,
pronsole
.
pronsole
):
def
__init__
(
self
,
filename
=
None
,
size
=
(
800
,
500
)
):
def
__init__
(
self
,
filename
=
None
,
size
=
winsize
):
self
.
filename
=
filename
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
wx
.
Frame
.
__init__
(
self
,
None
,
title
=
"Printer Interface"
,
size
=
size
);
...
...
@@ -287,12 +291,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def
toggleview
(
self
,
e
):
if
(
self
.
mini
):
self
.
mini
=
False
self
.
SetSize
(
(
800
,
500
)
)
self
.
SetSize
(
winsize
)
self
.
minibtn
.
SetLabel
(
"Mini mode"
)
else
:
self
.
mini
=
True
self
.
SetSize
(
(
800
,
120
)
)
self
.
SetSize
(
winssize
)
self
.
minibtn
.
SetLabel
(
"Full mode"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment