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
b6d9b575
Commit
b6d9b575
authored
Jun 02, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Settings utils to printrun/settings.py
parent
5fa7ca48
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
372 additions
and
357 deletions
+372
-357
pronsole.py
printrun/pronsole.py
+2
-351
pronterface.py
printrun/pronterface.py
+6
-6
settings.py
printrun/settings.py
+361
-0
utils.py
printrun/utils.py
+3
-0
No files found.
printrun/pronsole.py
View file @
b6d9b575
This diff is collapsed.
Click to expand it.
printrun/pronterface.py
View file @
b6d9b575
...
...
@@ -33,7 +33,7 @@ except ImportError: import json
from
.
import
pronsole
from
.
import
printcore
from
.utils
import
install_locale
,
setup_logging
,
\
from
.utils
import
install_locale
,
setup_logging
,
dosify
,
\
iconfile
,
configfile
,
format_time
,
format_duration
,
\
hexcolor_to_float
,
parse_temperature_report
,
\
prepare_command
,
check_rgb_color
,
check_rgba_color
...
...
@@ -45,8 +45,7 @@ except:
logging
.
error
(
_
(
"WX is not installed. This program requires WX to run."
))
raise
from
printrun.gui.widgets
import
SpecialButton
,
MacroEditor
,
\
PronterOptions
,
ButtonEdit
from
.gui.widgets
import
SpecialButton
,
MacroEditor
,
PronterOptions
,
ButtonEdit
winsize
=
(
800
,
500
)
layerindex
=
0
...
...
@@ -58,9 +57,10 @@ pronterface_quitting = False
class
PronterfaceQuitException
(
Exception
):
pass
from
printrun.gui
import
MainWindow
from
printrun.excluder
import
Excluder
from
pronsole
import
dosify
,
wxSetting
,
HiddenSetting
,
StringSetting
,
SpinSetting
,
FloatSpinSetting
,
BooleanSetting
,
StaticTextSetting
from
.gui
import
MainWindow
from
.excluder
import
Excluder
from
.settings
import
wxSetting
,
HiddenSetting
,
StringSetting
,
SpinSetting
,
\
FloatSpinSetting
,
BooleanSetting
,
StaticTextSetting
from
printrun
import
gcoder
tempreading_exp
=
re
.
compile
(
"(^T:| T:)"
)
...
...
printrun/settings.py
0 → 100644
View file @
b6d9b575
This diff is collapsed.
Click to expand it.
printrun/utils.py
View file @
b6d9b575
...
...
@@ -117,6 +117,9 @@ def get_command_output(command, replaces):
blocking
=
False
)
return
p
.
stdout
.
read
()
def
dosify
(
name
):
return
os
.
path
.
split
(
name
)[
1
]
.
split
(
"."
)[
0
][:
8
]
+
".g"
class
RemainingTimeEstimator
(
object
):
drift
=
None
...
...
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