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
ce51f36e
Commit
ce51f36e
authored
May 20, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle OSX MacOpenFile and MacOpenURL events
parent
c1eeb7b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
pronterface.py
pronterface.py
+16
-3
No files found.
pronterface.py
View file @
ce51f36e
...
@@ -1536,10 +1536,23 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -1536,10 +1536,23 @@ class PronterWindow(MainWindow, pronsole.pronsole):
bdl_float
=
[
float
(
value
)
if
value
else
defaults
[
i
]
for
i
,
value
in
enumerate
(
bdl
)]
bdl_float
=
[
float
(
value
)
if
value
else
defaults
[
i
]
for
i
,
value
in
enumerate
(
bdl
)]
return
bdl_float
return
bdl_float
class
PronterApp
(
wx
.
App
):
mainwindow
=
None
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
PronterApp
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
mainwindow
=
PronterWindow
()
self
.
mainwindow
.
Show
()
def
MacOpenFile
(
self
,
filename
):
self
.
mainwindow
.
do_load
(
filename
)
def
MacOpenURL
(
self
,
url
):
self
.
mainwindow
.
do_load
(
url
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
app
=
wx
.
App
(
False
)
app
=
PronterApp
(
False
)
main
=
PronterWindow
()
main
.
Show
()
try
:
try
:
app
.
MainLoop
()
app
.
MainLoop
()
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
...
...
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