Commit Graph

895 Commits (ee386e00919210991775550ff2f0a23887f042f2)

Author SHA1 Message Date
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
Miro Hrončok 629a53ac5c gcoder.py reads only hte content of the file
Previously, gcoder.py read not only the content of the file, but also it's
filename. This could have led to unexpected exceptions.
2013-01-13 20:57:15 +01:00
Miro Hrončok d90166b04c Making the whole package GNU GPLv3+. 2013-01-13 12:18:47 +01:00
Miro Hrončok 41889d62ed Added missing files to setup.py
If I install Printrun via setup.py, I don't have gcoder.py and I cannot even
use pronterface.py:

Traceback (most recent call last):
  File "/bin/pronterface.py", line 46, in <module>
    import pronsole
  File "/usr/bin/pronsole.py", line 23, in <module>
    from gcoder import GCode

So I've added this to setup.py.

Also, pronsole.ico is missing, added that to (not needed at runtime, but is
usefull for desktop files)
2012-11-24 15:53:03 +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
kliment 1d23c81f8e Merge pull request #293 from sivu/experimental
added gcoder from another project. using gcoder to calculate dimensions and used filament
2012-10-17 11:22:33 -07:00
Mikko Sivulainen 94666c2d13 updated gcoder copyright notice 2012-10-17 21:19:51 +03:00
Mikko Sivulainen 577ed7c8fb added gcoder from another project. using gcoder to calculate dimensions and used filament 2012-10-17 20:47:12 +03:00
kliment 51b5cf46dd Merge pull request #291 from sivu/experimental
fixed measurement calculation for X and Y axis
2012-10-09 09:23:11 -07:00
Mikko Sivulainen ab9002c579 fixed measurement calculation for X and Y axis
Conflicts:

	pronsole.py
2012-10-09 19:06:46 +03:00
iXce b6935b93d5 Merge pull request #288 from hroncok/master
Add the GNU GPL text as the licese itselfs demands
2012-09-23 17:13:33 -07:00
Miro Hrončok fa9ec49858 Added the GNU GPL text as the licese itselfs demands. 2012-09-24 01:01:21 +02:00
kliment 7333e93cc3 Merge pull request #286 from iXce/split-gui
GUI creation split
2012-09-10 04:56:18 -07: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 55ff65805b Correctly parent xyz buttons code-wise 2012-09-06 17:35:44 +02:00
Guillaume Seguin 77376bc17c Fix custom buttons 2012-09-06 09:02:47 +02:00
Kliment Yanev ab7c278200 Merge branch 'experimental' of github.com:kliment/Printrun into experimental 2012-09-06 07:08:40 +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 f8b7a52cbc Whitespace cleanup (extra newlines) on graph.py 2012-09-05 17:00:26 +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 bbcdf2f383 Cleanup factorized button creation, start using it more 2012-09-05 15:46:50 +02:00
Guillaume Seguin 8974ada134 Fix autosized button creation 2012-09-05 15:45:55 +02:00
Guillaume Seguin 0487808469 Improve lookup of files 2012-09-05 15:11:34 +02:00
Guillaume Seguin ffd7ff55dd Improve lookup of files 2012-09-05 15:11:11 +02:00
Guillaume Seguin b4f0240d4d Merge branch 'experimental' of github.com:kliment/Printrun into experimental 2012-09-05 14:43:08 +02:00
Guillaume Seguin 6b7532e723 re module was missing in pronterface_widgets 2012-09-05 14:40:16 +02:00
Guillaume Seguin 0d7a722839 Use correct variable for uppersizer 2012-09-05 14:37:03 +02:00
Guillaume Seguin 123fbf3802 re module was missing in pronterface_widgets 2012-09-05 13:27:49 +02:00
Guillaume Seguin 5f8d69c653 Merge branch 'experimental' of https://github.com/kliment/Printrun into split-gui 2012-09-05 13:26:00 +02:00
iXce a8621983fc Merge pull request #281 from cakeller98/experimental
Fixed a bug on windows that caused find to fail by a few spaces.
2012-09-05 04:22:45 -07:00
Guillaume Seguin 796968197d Factorize toolbar buttons creation 2012-09-05 13:20:37 +02:00
Guillaume Seguin db143e8589 Split GUI 2012-09-05 13:09:38 +02:00
Guillaume Seguin 3a8bb5277c Remove unappropriate webInterface close in pronterface_widgets 2012-09-05 13:06:55 +02:00
Christopher Keller aa48536f18 Fixed a bug on windows that caused find to fail by a few spaces.
here is a link to the explanation of why this bug exists.
http://wiki.wxpython.org/wxPython%20Platform%20Inconsistencies#line-142
2012-09-05 04:05:47 -07:00
iXce f35ce9cffb Merge pull request #280 from cakeller98/experimental
Improve resizing behavior of Pronterface main window
2012-09-05 02:55:12 -07:00
Christopher Keller a868e571f3 Fixed bug that caused divide by zero error if main gviz window was sized too small. 2012-09-05 02:21:02 -07:00
Christopher Keller 9f848c7631 Temp display staic text would cause rearranging of controls on main window resize. Adjusted the span so the static text could span all the controls on the left panel. 2012-09-05 01:47:22 -07:00
kliment 093f6a4529 Merge pull request #279 from iXce/connection-rework
Connection rework, coding style rework
2012-09-05 01:19:07 -07:00
Guillaume Seguin 107280b822 Rerun reindent.py 2012-09-05 10:11:48 +02:00
Guillaume Seguin bbad2f53d6 Whoops, unfinished conflict solving 2012-09-05 10:10:05 +02:00
Guillaume Seguin bff5a8ff51 Merge branch 'experimental' into connection-rework
Conflicts:
	printrun/printcore.py
	pronsole.py
	pronterface.py
2012-09-05 09:56:16 +02:00
kliment 7e2e6a519f Merge pull request #264 from iXce/experimental
Build system and CLI switch to request webinterface
2012-09-05 00:40:22 -07:00
Guillaume Seguin 7da8a713f1 Merge branch 'experimental' of github.com:iXce/Printrun into experimental 2012-09-02 11:49:09 +02:00
Guillaume Seguin fd08509b75 Merge branch 'experimental' of https://github.com/kliment/Printrun into experimental
Conflicts:
	pronterface.py
2012-09-02 11:48:31 +02:00