Commit Graph

371 Commits (master)

Author SHA1 Message Date
Sergiusz B fdb8b0bebe Fix compatibility issues on Gentoo. 2013-05-30 16:32:09 +02:00
Kliment Yanev 54fd879825 Gcode was not analyzed when loading through pronterface load file button 2013-05-20 11:43:06 +02:00
Guillaume Seguin 75afa014e3 Use a deque instead of a list to store hilighted lines
This might speed up Pronterface while printing.
Indeed, as we keep adding items we keep expanding the list and Python has to
move it all the time.
2013-05-19 13:13:03 +02:00
Guillaume Seguin 9f9b8d05cd Cleanup pronsole.py loading & some SD stuff 2013-05-19 12:38:40 +02:00
Guillaume Seguin 1dfb0cd6fe Cleanup pronsole._do_load and parse gcode from there 2013-05-19 00:17:10 +02:00
Guillaume Seguin 3fe969e536 Cosmetic change to a translated string
This change is free as I already changed this string before pushing :)
2013-05-18 23:29:37 +02:00
Guillaume Seguin be10cff3c5 Cleanup and fix recvcb 2013-05-18 23:01:13 +02:00
Guillaume Seguin 8013ac86be Implement coordinate tracking for manual moves (#343)
This change needs testing : M114 is unbuffered, and thus might break lookahead
for Marlin and results in laggy jogging. We need to see how bad this is and
find some smart way to do it (like to send the M114 only when the user stopped
clicking everywhere, by using some timer callbacks).
2013-05-18 22:39:35 +02:00
Guillaume Seguin d94ba0de62 Remove useless temp display update, since we already do it in recvcb 2013-05-18 22:38:32 +02:00
Guillaume Seguin 008d3f4a4e Minor cleanup 2013-05-18 22:37:49 +02:00
Guillaume Seguin c6104d56ef Remove "pessimistic" from estimated duration string
The computed duration is no more pessimistic, for a few reasons.
- the main one is that it does not take retraction into account
- Z moves are not taken into account either
- arcs are not supported
- the acceleration code seems to estimate acceleration time correctly but is
  wrong for deceleration
So instead of telling the user this estimation is pessimistic, let's just tell
them this is an estimate.
2013-05-18 19:52:05 +02:00
Guillaume Seguin 1fec635721 Merge branch 'experimental' of github.com:kliment/Printrun into experimental 2013-05-18 19:14:21 +02:00
Guillaume Seguin da0cab63c7 Don't limit sentlines queue size 2013-05-18 18:38:54 +02:00
Guillaume Seguin a4759865ba Import shlex from the beginning 2013-05-18 17:18:20 +02:00
Guillaume Seguin faeb14f190 Explicitely delete wx.App at the end of pronterface.py
Okai, this may not make that much sense. However when removing the mainloop,
pronterface was segfaulting when Python was freeing everything. As a
workaround, explictely destroy the wx application, which will cleanly free
things in order, while Python might destroy wx things in a random order.
2013-05-18 12:50:18 +02:00
Guillaume Seguin e29dd70efe Merge branch 'experimental' into HEAD
Conflicts:
	printrun/gviz.py
2013-05-18 11:14:50 +02:00
Guillaume Seguin 16b5f6db25 Cleanup some code
Not sure about that dropping of the self.gwindow.Destroy try block, we'll see
2013-05-18 11:05:45 +02:00
Guillaume Seguin 7fc0f1c475 Add -g/--gauges CLI argument for temp gauges, and improved argparsing.
The gauges options is a CLI parameter as having it as an option would be
too painful to handle for now.
Argument parsing has been improved so that pronterface can add its own CLI
parameters in addition to pronsole's ones.
2013-05-17 17:04:41 +02:00
Guillaume Seguin 90e32562ea More work on getting the gauges back 2013-05-17 16:59:28 +02:00
Guillaume Seguin 89453befd1 Fix possible issue where checksum would break layer change detection
Should fix #348
2013-05-17 16:48:53 +02:00
Guillaume Seguin a9c3e8b442 Revert "Remove temperature gauges entirely from codebase"
This reverts commit 02ef52d777.
First step towards getting the gauges optionally back for #296.
2013-05-17 16:33:05 +02:00
Guillaume Seguin ec76dc6de0 Woops, forgot to commit this major thing 2013-05-17 00:18:54 +02:00
Guillaume Seguin 0376729afc Woops, typo 2013-05-16 22:50:28 +02:00
Guillaume Seguin 7a528800e6 Minor changes : mark 2 strings for translations + cleanup
One of the strings is to give a hint for wrong baudrates (#276)
2013-05-16 20:47:56 +02:00
Guillaume Seguin a80a2fea4b Move gcoder.py into printrun module 2013-05-16 15:05:28 +02:00
Guillaume Seguin 9816ea7c8a Cleanup some code in pronterface 2013-05-15 21:39:08 +02:00
Guillaume Seguin b1113f06a5 Woops, typoz 2013-05-15 19:42:38 +02:00
Guillaume Seguin 79d0477553 Move code around and remove useless helpers from pronsole.py 2013-05-15 15:23:46 +02:00
D1plo1d 31891fa3da Merging experimental branch with Pronserve 2013-04-19 20:42:03 -04:00
D1plo1d e1660bd7f0 Removing the web interface bindings from pronsole and pronterface 2013-04-09 15:46:40 -04:00
fsantini 9500528676 Merge branch 'experimental' of https://github.com/kliment/Printrun into experimental 2013-04-08 19:03:34 +02:00
Francesco Santini 5a059961fa Indentation fixes, limit calculations 2013-04-08 13:06:31 +02:00
fsantini 360b4f60e4 Pause code working;
implemented the @pause gcode host command (and a small framework for host commands)
2013-04-07 19:45:45 +02:00
fsantini 00f1306f08 Bugfixes in the analyzer
Pause code (Ported from RepetierHost, untested)
2013-04-06 18:22:56 +02:00
Ken Aaker 2aac06f9da Fix abort in wxColour_helper on OpenSUSE
This replaces "" strings that cause aborts in python-wxWidgets wxColour_helper with
Python None objects. This corrects an abort where the helper tries to fetch the
first byte of the colour string even when it's 0 length.
2013-03-27 19:45:30 -05:00
Miro Hrončok 354bfb090f Do not rise, but end the scope 2013-01-23 17:12:01 +01:00
Miro Hrončok 064974b733 Handle UTF encoding better 2013-01-23 17:11:08 +01:00
Miro Hrončok ee386e0091 Adding UTF-8 decoding back 2013-01-23 16:55:38 +01:00
Miro Hrončok f942c1a007 Tell the user, there was an error while connecting
Before, when there was an error while connecting, user didn't know, when
Pronterface wasn't launched from the terminal.

So you could just hit Connect button several times and all you've get was:
Connecting...
Connecting...
Connecting...

Now, when there is an exception during the connection, the user will notice:
Connecting...
Error: You are trying to connect to a non-exisiting port.

Or:
Connecting...
Error: You don't have permission to open /dev/ttyUSB0.
You might need to add yourself to the dialout group.

Unfortunately pyserial's SerialException doesn't provide errno yet, so the
message isn't so user friendly:
Connecting...
could not open port None: [Errno 2] No such file or directory: 'None'

I've filled a bug report with patch to pyserial.

Together with this I've realised, there is unnecessary UTF8 decoding of the
output. When user has UTF-8 locale, there was an exception when printing the
exception to the output (almost an exception inception). So I have dropped it,
but feel free to add it back, if I broke anything else.
2013-01-15 21:22:56 +01:00
Kliment Yanev 6fa47668f2 Merge branch 'master' of github.com:kliment/Printrun into experimental
Conflicts:
	pronterface.py
2012-11-03 12:18:04 +01:00
Guillaume Seguin 9c55677ec1 Fix custom button edit 2012-09-06 19:32:23 +02:00
Guillaume Seguin 7301d7e847 Merge branch 'experimental' of git://github.com/kliment/Printrun into split-gui 2012-09-06 18:07:08 +02:00
Guillaume Seguin 77376bc17c Fix custom buttons 2012-09-06 09:02:47 +02:00
Kliment Yanev 1581ab0b94 Fix exception when no bed present. Closes #283 2012-09-06 07:07:37 +02:00
Guillaume Seguin 8979ec888a Rename macroed to MacroEditor 2012-09-05 17:30:28 +02:00
Guillaume Seguin 37a442e6fd Cleanup imports 2012-09-05 16:55:28 +02:00
Guillaume Seguin 02ef52d777 Remove temperature gauges entirely from codebase 2012-09-05 16:46:39 +02:00
Guillaume Seguin ae7bac414b More cleanup of buttons handling, sanitize custom buttons 2012-09-05 16:32:35 +02:00
Guillaume Seguin d01cb51a57 Remove dead code 2012-09-05 15:47:10 +02:00
Guillaume Seguin 0d7a722839 Use correct variable for uppersizer 2012-09-05 14:37:03 +02:00