Commit Graph

35 Commits

Author SHA1 Message Date
Nico Tonnhofer b37e155eb4 python3: remove major version check 2019-04-18 09:10:37 +02:00
Nico Tonnhofer bf72cb7f10 python3: pep8 all files.
e.g. 4 spaces for identation
using black for this:
https://github.com/ambv/black
2019-04-18 09:10:37 +02:00
Nico Tonnhofer 9b49097ac3 configtool: stage 1 for making it compatible with python3 2019-04-18 09:09:53 +02:00
Nico Tonnhofer 727d5dee66 configtool: use new wxPython 4
Installation/Update:
- Windows/macOS
    pip install -U wxPython

- Linux
    pip install -U wxPython
      - if it fails to install wxPython >= 4 go ahead, else you're done.

    Check https://extras.wxpython.org/wxPython4/extras/linux/gtk3/
    for e.g. Ubuntu 18.04:
      pip install -U \
      -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ \
      wxPython

check also https://wxpython.org/pages/downloads/ for further details.
2018-12-30 22:12:36 +01:00
Nico Tonnhofer 55f560260f configtool: with commandline it is not necessary to have wx
e.g. the regressiontests will work without wx
2018-12-21 20:03:17 +01:00
Phil Hord 2a6f00454f Configtool: add --quit and --save commandline switches.
Teach configtool to save ini, board and printer files with the
--save commandline switch.  Add a feature to Printer and Board
to let us pass None for the "values" to save; this causes the
class to save the previously loaded settings instead of taking
new settings in the argument.

Also add --quit switch to tell commandline not to continue to run the
GUI.  There's not much point in running the gui after many of these
switches, but that will change in the future.  Add this --quit option
to quit early so we can begin to use this new mode for test validation.
2016-06-06 12:36:17 +02:00
Phil Hord ba5447b409 Configtool: add --show-all switch.
Show all the loaded (defined) variables. Leave out the commented
variables for now.
2016-06-05 21:09:25 +02:00
Phil Hord 0c8ae903e9 Configtool: add --load switch to load printer, board or ini.
Teach configtool command line functions to load the printer, board
or ini file settings into internal classes. For now this only
exercises the "load" functionality of the classes, but with -vv
you can also see the results of the load dumped to the console.
2016-06-05 21:09:18 +02:00
Phil Hord 2c5a36b14e Configtool: make Settings the "global" container.
Instead of passing myriad variables around in arguments to
classes and functions, put the global settings like "verbose" and
"cmdFolder" in the Settings object and pass that in to the top.
2016-06-05 21:09:11 +02:00
Phil Hord eafb8e0bfb Configtool: begin command line automation.
Add a command line handler mode to Configtool to permit automation
for scripts.

Traumflug's review note: restored Python 3 checks.
2016-06-05 21:09:04 +02:00
Markus Hitter b4145e683a Configtool: work around a URL-open bug on some Linuxes.
Not exactly ideal, but the best I could find so far.

This is work related to issue #159.
2015-07-01 16:42:38 +02:00
Markus Hitter 80626eb528 Configtool: Add "Report problem" function.
The idea is to open the user's email client automatically, so
(s)he has not much more to do than to write a sentence about what
went wrong. As easy as possible!

This is work related to issue #159.
2015-07-01 16:42:36 +02:00
Markus Hitter 113b23ca2c Configtool: add "About Teacup" function.
It's a nice thank you and listing of the top 10 contributors.

This is work related to issue #159.
2015-06-10 13:56:39 +02:00
Markus Hitter 652b129b20 Configtool: add help menu.
This is "Help", "Report problem" and "About Teacup". Functionality
behind the latter two forthcoming.

This is work related to issue #159.
2015-06-10 13:56:39 +02:00
Markus Hitter 389dfdd3a1 Configtool: wait before erroring out.
When double-clicking configtool.py, these error messages are
never visible, because the window running the command closes
immediately. Give 10 seconds for reading.

This is related to issue #158.
2015-06-06 12:05:02 +02:00
Markus Hitter 9976640d92 Configtool: color background matching the background picture.
Actual color is easily changeable in Decoration, as this is a
Singleton.
2015-05-30 19:20:38 +02:00
Markus Hitter 95d7f0fa1e Configtool: resize the window properly.
This means, including the background panel and background picture.
2015-05-30 18:41:02 +02:00
Markus Hitter be16c98e59 Configtool: give the thing a nice background picture.
This is pure dessert topping, no functinal change. Well, eye candy
is important for acceptance. :-)
2015-05-30 18:41:02 +02:00
Markus Hitter 8efc804cf3 Configtool: try to educate the user about missing wxPython.
Should help to tackle issue #151.
2015-05-27 15:47:47 +02:00
Markus Hitter e53424ba22 Configtool: try to educate the user about the non-support of Python3.
Let's cross fingers this helps enough to avoid users kicking this
great tool away on the first failed try. :-)

This should help to tackle issue #151.
2015-05-27 15:47:45 +02:00
jbernardis 6243880982 Configtool: also save thermistor tables when only saving config.h.
Previously this was only done when saving a board file ... but
these tables can also change when general settings are changed.
2015-05-22 13:15:47 +02:00
jbernardis 5006eecd43 configtool.py: don't try to process an unreadable config.h. 2015-05-22 13:13:16 +02:00
jbernardis b2e075be67 Configtool: load config.h at startup, if present.
This is for conveninence of continued usage and should solve
issue #139.
2015-05-08 20:38:23 +02:00
jbernardis c6150737a7 Configtool: don't report successful file saves.
This is the expected outcome, so explicitely reporting this, with
requiring the user to click a dialog box away, is kind of clutter.

This should solve issue #136.
2015-05-08 14:06:40 +02:00
jbernardis ac8890b207 Configtool: distiguish between bootloader and firmware baud rate.
This should solve issue #133.
2015-05-04 22:30:01 +02:00
jbernardis d077ae6e9d Configtool: don't use deprecated wxPySimpleApp().
A really simple fix :-)
2015-04-21 02:51:32 +02:00
jbernardis 9f74d315d0 Configtool: don't mess up on modified default configs.
Previously, loading default configurations for board or printer,
then modifying them without saving them, then attempting to
build lead to a big mess, like attempting to save the board file,
failing in doing so and then building anyways.
2015-04-21 02:51:32 +02:00
Markus Hitter 2b5e28a4c8 Configtool: on configuration mismatch, save instead of load.
Loading led to building a firmware which didn't match what was
visible in the dialogs when the build was started. Very
misleading.
2015-04-21 02:51:31 +02:00
Markus Hitter c7ef3b9ff9 Configtool: report save settings success directly in SettingsDlg.
There we have access to the actual file name.
2015-04-21 02:51:31 +02:00
jbernardis ee8f5f9170 Configtool: some code prettifications.
Pure whitespace changes.
2015-04-21 02:51:30 +02:00
jbernardis 2436ac2865 Configtool: a few more apperance enhancements. 2015-04-21 02:51:30 +02:00
jbernardis be8b0da71a Configtool: remove "Load default" menu entry.
This one is pretty pointless, because every user has a different
printer, so we can't deliver a meaningful default with the
distribution.
2015-04-21 02:51:30 +02:00
jbernardis 706ccf0637 Configtool: protect original config files.
Likely users don't care too much about the name of the saved file,
so they likely use the default ones. If they mess up, they also
likely want to return to the original, but, d'oh, it's overwritten.
Don't let this happen, enforce a non-original file name for user
saves.

In other words: don't let users shoot themselfs into their foot.
2015-04-21 02:51:27 +02:00
Markus Hitter e2e77ae927 Configtool: remove version information.
Teacup doesn't do releases, it's a rolling release :-)
2015-04-21 02:11:01 +02:00
Markus Hitter 6e19270f43 Configtool: rename to configtool.py.
All the stuff is in configtool/, there's configtool.ini, config.py
can be easily confused with config.h, ... quite a number of
reasons.
2015-04-21 02:11:01 +02:00