Commit Graph

24 Commits

Author SHA1 Message Date
Ferdi Franceschini
abcf19553b Copy original file in backup_files method instead of renaming it in case write_config_file fails.
Add a 'none' entry to the implementation list.
2014-07-03 23:36:43 +10:00
Ferdi Franceschini
294b6fa776 Make config_edit.py easier to browse by grouping order of class declarations. 2014-07-03 18:29:39 +10:00
Ferdi Franceschini
7a4ce1f234 Write option id into driver implementation section when saving the sics_config.ini 2014-07-03 16:04:00 +10:00
Ferdi Franceschini
87bf34c7b1 Renamed type to optype in sics_config.ini so devices
like multimeters can set a data type parameter eg datype
config_edit.py uses optype instead of type
Also the listwalker is now being generated dynamically so that in the
future unavailable drivers can be moved from the list of radiobuttons.
2014-07-02 08:50:17 +10:00
Douglas Clowes
62f1170a6d Restore sorted ini files on output 2014-06-30 12:47:21 +10:00
Ferdi Franceschini
bd93c34875 copy.copy() doesn't work with urwid on the SL6 VMs.
Explicitly make a new listwalker imp_lw to avoid overwriting the first entry in self.imp_lw_dict[opt]
Python 2.6 requires field numbers for format strings.
2014-06-30 10:09:34 +10:00
Ferdi Franceschini
e971cd8b64 New sicsconfig.ini file configuration editor.
Updated wombat sics_config.ini and gen_sct.py
Generated new tcl files from sct templates and
modified some old sct_*.tcl drivers.

TODO
sct_keithley_2700.tcl
magneticField/sct_oxford_labview.tcl
magneticField/sct_bruker_BEC1.tcl
temperature/sct_watlow_st4.tcl
temperature/sct_oxford_mercury.tcl
temperature/sct_mercury_pres.tcl
temperature/sct_julabo_lh45.tcl
temperature/sct_lakeshore_340.tcl
temperature/sct_julabo_lh45_gen.tcl
temperature/sct_watlow_rm.tcl
temperature/sct_eurotherm_2000.tcl
temperature/sct_lakeshore_336.tcl
temperature/sct_watlow_pm.tcl
temperature/sct_oxford_itc.tcl
temperature/sct_lakeshore_370.tcl
temperature/west400.tcl
2014-06-30 09:08:19 +10:00
Ferdi Franceschini
a363bc3c2c Fix bug introduced when AttrWrap was replaced by AttrMap.
AttrWrap transparently passes method calls through to the widget
but you need to use the original_widget attribute with AttrMap to
access methods on the underlying widget.
2014-06-27 15:05:07 +10:00
Ferdi Franceschini
bd97a75e9d Replace deprecated urwid AttrWrap() with AttrMap() 2014-06-27 15:05:05 +10:00
Douglas Clowes
f2c5f515c4 Add radio buttons to ini files (radio = radio_group_name) 2014-03-28 10:57:13 +11:00
Ferdi Franceschini
55e93c8386 Set a convenient default path for config ini file on ICS and ICS TEST hosts. 2013-10-15 03:08:23 +11:00
Douglas Clowes
362e490121 Add order=, recursion detection, --verbose 2013-08-28 15:33:01 +10:00
Douglas Clowes
8967885412 Implement group headings in the listbox 2013-08-27 17:59:33 +10:00
Douglas Clowes
9fc130bff2 Implement command to reread the configuration file 2013-08-27 17:59:33 +10:00
Douglas Clowes
ecbe9953e8 cascade, onifon, onifoff, offifon and offofoff 2013-08-27 17:59:32 +10:00
Douglas Clowes
9da47fc1f7 groups, sorted display, sorted write 2013-08-27 17:59:31 +10:00
Douglas Clowes
1941679718 cascade and a bit of cleanup 2013-08-27 17:59:31 +10:00
Douglas Clowes
dcca4385b3 Write input file with backups 2013-08-27 17:59:30 +10:00
Douglas Clowes
45a20823ba Cleanup and put focus change on cb_list 2013-08-27 17:59:30 +10:00
Douglas Clowes
7225f1920f Attempt a focus change callback 2013-08-27 17:59:30 +10:00
Douglas Clowes
4ecebd5e1f Add change callback, and write code 2013-08-27 17:59:29 +10:00
Douglas Clowes
75cc6a1ff6 Limit it to the Checkbox list 2013-08-27 17:59:29 +10:00
Douglas Clowes
b9d9721a5f Massage in ConfigParser 2013-08-27 17:59:28 +10:00
Douglas Clowes
160babe51a Start a config editor with an extract from the urwid tour 2013-08-27 17:59:28 +10:00