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
8979ec88
Commit
8979ec88
authored
Sep 05, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename macroed to MacroEditor
parent
f8b7a52c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pronterface_widgets.py
printrun/pronterface_widgets.py
+1
-1
pronterface.py
pronterface.py
+2
-2
No files found.
printrun/pronterface_widgets.py
View file @
8979ec88
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
wx
import
wx
import
re
import
re
class
macroed
(
wx
.
Dialog
):
class
MacroEditor
(
wx
.
Dialog
):
"""Really simple editor to edit macro definitions"""
"""Really simple editor to edit macro definitions"""
def
__init__
(
self
,
macro_name
,
definition
,
callback
,
gcode
=
False
):
def
__init__
(
self
,
macro_name
,
definition
,
callback
,
gcode
=
False
):
...
...
pronterface.py
View file @
8979ec88
...
@@ -379,7 +379,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -379,7 +379,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
cur_macro_name
=
macro_name
self
.
cur_macro_name
=
macro_name
self
.
cur_macro_def
=
definition
self
.
cur_macro_def
=
definition
self
.
end_macro
()
self
.
end_macro
()
macroed
(
macro_name
,
old_macro_definition
,
cb
)
MacroEditor
(
macro_name
,
old_macro_definition
,
cb
)
else
:
else
:
pronsole
.
pronsole
.
start_macro
(
self
,
macro_name
,
old_macro_definition
)
pronsole
.
pronsole
.
start_macro
(
self
,
macro_name
,
old_macro_definition
)
...
@@ -460,7 +460,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -460,7 +460,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
def
do_editgcode
(
self
,
e
=
None
):
def
do_editgcode
(
self
,
e
=
None
):
if
self
.
filename
is
not
None
:
if
self
.
filename
is
not
None
:
macroed
(
self
.
filename
,
self
.
f
,
self
.
doneediting
,
1
)
MacroEditor
(
self
.
filename
,
self
.
f
,
self
.
doneediting
,
1
)
def
new_macro
(
self
,
e
=
None
):
def
new_macro
(
self
,
e
=
None
):
dialog
=
wx
.
Dialog
(
self
,
-
1
,
_
(
"Enter macro name"
),
size
=
(
260
,
85
))
dialog
=
wx
.
Dialog
(
self
,
-
1
,
_
(
"Enter macro name"
),
size
=
(
260
,
85
))
...
...
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