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
27759e3f
Commit
27759e3f
authored
May 28, 2013
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add conditionals so Windows binary can be built directly from source
parent
a7d2302e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
plater.py
plater.py
+4
-1
pronsole.py
pronsole.py
+2
-0
pronterface.py
pronterface.py
+4
-1
No files found.
plater.py
View file @
27759e3f
...
...
@@ -244,6 +244,9 @@ class showstl(wx.Window):
class
stlwin
(
wx
.
Frame
):
def
__init__
(
self
,
size
=
(
800
,
580
),
callback
=
None
,
parent
=
None
):
wx
.
Frame
.
__init__
(
self
,
parent
,
title
=
_
(
"Plate building tool"
),
size
=
size
)
if
hasattr
(
sys
,
"frozen"
)
and
sys
.
frozen
==
"windows_exe"
:
self
.
SetIcon
(
wx
.
Icon
(
sys
.
executable
,
wx
.
BITMAP_TYPE_ICO
))
else
:
self
.
SetIcon
(
wx
.
Icon
(
pixmapfile
(
"plater.ico"
),
wx
.
BITMAP_TYPE_ICO
))
self
.
mainsizer
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
self
.
panel
=
wx
.
Panel
(
self
,
-
1
,
size
=
(
150
,
600
),
pos
=
(
0
,
0
))
...
...
pronsole.py
View file @
27759e3f
...
...
@@ -609,6 +609,8 @@ class pronsole(cmd.Cmd):
self
.
processing_rc
=
False
def
load_default_rc
(
self
,
rc_filename
=
".pronsolerc"
):
if
rc_filename
==
".pronsolerc"
and
hasattr
(
sys
,
"frozen"
)
and
sys
.
frozen
in
[
"windows_exe"
,
"console_exe"
]:
rc_filename
=
"printrunconf.ini"
try
:
try
:
self
.
load_rc
(
os
.
path
.
join
(
os
.
path
.
expanduser
(
"~"
),
rc_filename
))
...
...
pronterface.py
View file @
27759e3f
...
...
@@ -196,6 +196,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
filename
=
filename
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
MainWindow
.
__init__
(
self
,
None
,
title
=
_
(
"Printer Interface"
),
size
=
size
);
if
hasattr
(
sys
,
"frozen"
)
and
sys
.
frozen
==
"windows_exe"
:
self
.
SetIcon
(
wx
.
Icon
(
sys
.
executable
,
wx
.
BITMAP_TYPE_ICO
))
else
:
self
.
SetIcon
(
wx
.
Icon
(
pixmapfile
(
"P-face.ico"
),
wx
.
BITMAP_TYPE_ICO
))
self
.
panel
=
wx
.
Panel
(
self
,
-
1
,
size
=
size
)
...
...
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