Sebastian Kuzminsky
2e02f5c785
fix intial/initial typos all over
2018-01-21 14:49:14 -07:00
Mick
91467a6f6a
Bug in radio button pyvcp_widgets
...
initval field setting the correct widget to active at initialisation, but changes to prevent
unnecessary updates supressing initial setting of associated pin to match.
Explicitly setting pin associated with active button selection via initval at initialisation corrects this.
Signed-off-by: Mick Grant <arceye@mgware.co.uk>
2015-01-21 07:30:35 -07:00
Michael Haberler
d17419a045
new pyvcp_widgets
...
this fixes http://sourceforge.net/p/emc/bugs/364/
Signed-off-by: Michael Haberler <git@mah.priv.at>
(cherry picked from commit 00f3419a0d )
2014-04-03 23:45:21 -06:00
ArcEye
8399d841b5
Fix backward incompatibility in pyvcp_bar
...
Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2014-02-27 20:41:48 -08:00
Chris Morley
9846c8dcac
pyvcp -extend some widget functions, add multilabel
...
ArcEye/Mick contributed these
2014-02-26 00:22:09 -08:00
John Kasunich
27f474abef
pyvcp dial widget: fix various odd behaviors
...
Changing the increment under certain conditions would
result in an un-commanded change in output value. Also,
some patterns of increment and value changes could result
in a value well outside the specified min and max limits.
2013-06-23 10:15:31 -05:00
John Kasunich
31aeeb058e
fix pyvcp dial widget behavior at min/max limit
...
the overflow/underflow detection logic misbehaved
for some ratios of limit and increment size, result
was a value that wrapped instead of clamping at the
limit
2013-06-21 17:32:39 -05:00
Maximilian H
fb2d3c5711
pyvcp: radiobutton initial value specification
2010-08-20 11:46:19 -05:00
Chris Morley
4018a76cd3
Fix inconsistance spelling of disable pin option
...
supposed to be disable_pin not disablepin
so as to match the manual and other options
2010-04-05 12:28:17 -07:00
Michael Geszkiewicz
5158185430
Proper fix of SF#2720828 (patch by jepler)
...
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2009-08-19 22:56:15 +02:00
Michael Geszkiewicz
b71549658f
Fix SF#2720828: Dial will display a large exponent number instead of 0 after
...
you make one full turn
Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
2009-08-19 21:33:25 +02:00
Chris Morley
41dc7102b1
Change behavior of auto-numbered HAL pins.
...
Now only Widgets that have no designated HAL
name will increase the pin number. So if you
have 5 unnamed LEDs, 2 named, and 5 unnamed
Then the last group will be numbered led.5 to
led.9 Did this in a separate commit so if it
causes problems it can be easily corrected.
2009-04-22 02:56:11 +00:00
Chris Morley
85676e1b2f
oops forgot to change elif to if
2009-04-22 02:40:45 +00:00
Chris Morley
728292d565
fix disable pins in the led widgets. They held the leds on the disabled color no matter what.
2009-04-22 02:19:15 +00:00
Chris Morley
88cece88cf
add the option to create 'disable' halpins to label, led, rectled and button widgets for the ability to create pyvcp panels that have 'sensitive' widgets
2009-04-11 06:25:31 +00:00
Chris Morley
a4db30d76a
Changed the pad size to scale itself and made knob circle small as per discussion with John T
2009-01-27 00:35:42 +00:00
Chris Morley
0d1b683374
figured out how to make an arrow for dial and jogwheel
2009-01-26 22:23:18 +00:00
Chris Morley
92bf662d6a
Chanmake pad size bigger for dial widget
2009-01-26 21:23:05 +00:00
Chris Morley
a52769909a
Changes to Dial widget: add outside circle, major ticks, options to change color of dial,edge and dot. added outside circle to jogwheel widget as well
2009-01-26 20:59:36 +00:00
John Kasunich
2cf175643a
major improvements to meter widget - scaled fonts, colored regions, minor ticks, nicer pointer, adjustable scales - patch by Jan Van Gilsen
2009-01-03 16:39:47 +00:00
John Kasunich
303bddd298
add minor tick marks to PyVcp meter widget - patch by JanVanGilsen
2008-12-30 10:53:52 +00:00
Chris Radek
599ef8637c
remove debug output
2008-10-23 02:39:17 +00:00
Chris Radek
74f910d324
remove bogus DOS line endings
2008-08-26 15:06:22 +00:00
Chris Radek
ee6d54e5b0
fix problem that required you hold down pyvcp buttons for them to work
2008-08-26 14:59:01 +00:00
John Kasunich
5c145456f0
this accidentally got omitted from the last commit
2008-07-12 14:54:06 +00:00
John Kasunich
f9a336d723
added a timer widget to pyvcp - can be used to see how long a g-code program took to run
2008-07-12 05:04:51 +00:00
Stephen Wille Padnos
ff4cbb56b9
added rectangular LED widgets. from Roguish on IRC
2008-07-08 01:33:15 +00:00
Jeff Epler
bd92572683
new tags <image_bit images="false-image true-image"/> and
...
<image_s32 images="image0 image1 image2 ..."/>
use <image/> tag to load the image
2007-08-14 01:50:35 +00:00
Jeff Epler
9d6f6b4749
* <title title= iconname=/> tag to set window and icon title -- iconname is optional
...
New tags:
* <axisoptions/> to load axis-like defaults for fonts and colors
* <option pattern= value= priority=> to add options to the Tk option database
* <s32 ...> to show HAL pins of type "s32" as numbers
* <u32 ...> to show HAL pins of type "u32" as numbers
2007-08-13 20:03:49 +00:00
Jeff Epler
5675ad1a47
allow images to be created using the <image> tag. These images can later be used on other tags like <button image=>. at least .gif images are supported, it depends on the tk version installed
2007-08-05 14:35:34 +00:00
Jarl Stefansson
c3621f00b0
New Plasma Configuration to replace dallur-thc config and a standalone simulator config, gantrykins kinematics, optional default values added to pyvcp components, changed parameters to pins in comp and oneshot
2007-05-19 11:22:31 +00:00
Jeff Epler
11ffabef91
allow a new pin prefix to be specified for an included xml file
2007-02-04 20:26:36 +00:00
Anders Wallin
9a18ec0d73
improve bar widget so it handles negative numbers better
...
comment out percentage stuff from bar, not needed anymore
comment out importing some modules twice (redundant?)
2007-02-03 19:50:13 +00:00
Jeff Epler
f2d574321c
make hbox work again
2007-02-02 03:34:02 +00:00
Jeff Epler
53ea6f4748
allow grid rows or columns to be made "uniform"
2007-02-01 17:23:57 +00:00
Jeff Epler
22ec6e055d
implement new tag: <include src="other.xml"/>
2007-02-01 16:54:29 +00:00
Jeff Epler
7fa68d985d
allow expand to be set for hbox/vbox contents
2007-02-01 02:54:24 +00:00
Jeff Epler
986fa88e7a
allow the 'fill' and 'anchor' of vbox and hbox to be specified by the
...
<boxfill fill=/> and <boxfill anchor=/> tags
incorporate <labelframe> from tomp
get rid of 'packtype' in favor of 'add' method
2007-02-01 02:20:47 +00:00
Jeff Epler
dfaba2709b
tabular layout, including Tk-style 'sticky', row and column spanning, and stretchy rows and columns
2007-02-01 02:08:32 +00:00
Jeff Epler
fe9de30443
get rid of the need to specify 'elements' and 'parameters' by hand -- elements are found automatically, and anything not an element is a parameter
2007-02-01 01:04:29 +00:00
Jeff Epler
22d6514f83
add a <tabs> widget to pyvcp
2007-01-31 23:40:37 +00:00
Anders Wallin
b6ffa14d49
- add dial widget by tomp. I renamed a lot of the variables to make
...
the code more readable. I'm not sure the key-bindings will be intuitive
for first time users...
- add timed update for jogwheel (fixes problem where signal connected to
pin was not updated before an event ocurred)
XML for dial is now:
<dial>
<size>200</size>
<cpr>50</cpr>
<min_>-23</min_>
<max_>+42</max_>
<text>"my dial"</text>
<init>12.34</init>
<resolution>0.4</resolution>
<halpin>"my-dial-value"</halpin>
</dial>
2007-01-21 20:37:19 +00:00
Anders Wallin
46b09efa80
fix typo in pyvcp_bar
...
change jogwheel to use a dot instead of a line (tomp's suggestion from
the wiki)
2007-01-14 15:03:09 +00:00
Anders Wallin
e0f393b27d
bar used 'startval' and 'endval' tags
...
scale used 'from_' and 'to' tags
both now use the more generic 'min_' and 'max_'
2007-01-14 14:44:23 +00:00
Anders Wallin
d3e00d1d48
allow user to specify broder type and widht for hbox and vbox
...
<relief>GROOVE</relief> (FLAT, SUNKEN, RAISED,
GROOVE, RIDGE)
<bd>3</bd> (border width)
2007-01-14 14:36:16 +00:00
Anders Wallin
1f9e859564
make fillcolor and bgcolor work for Bar
...
fix the FIXMEs ;)
2007-01-13 22:11:27 +00:00
Anders Wallin
990274fb50
add FIXME texts all over the place
...
hint: if you are python literate and have free time, take a look!
2007-01-13 22:01:07 +00:00
Anders Wallin
8937c30090
Meter - shows the value of a FLOAT with an analog meter
...
<meter>
[ <size>300</size> ]
[ <halpin>"mymeter"</halpin> ]
[ <text>"My Voltage"</text> ]
[ <min_>-22</min_> ]
[ <max_>123</max_> ]
</meter>
2007-01-09 20:58:14 +00:00
Anders Wallin
31b5f06417
A jogwheel that outputs a HAL_FLOAT count
...
reacts to both mouse-wheel and mouse dragging
<jogwheel>
[ <cpr>33</cpr> ] (counts per revolution)
[ <halpin>"myjogwheel"</halpin> ]
[ <size>300</size> ]
</jogwheel>
2007-01-09 19:50:30 +00:00
Anders Wallin
cfad55fe14
new widget: radiobutton. sets one of a group of BIT pins true. like
...
this:
<radiobutton>
<choices>["one","two","three"]</choices>
</radiobutton>
2007-01-06 20:48:56 +00:00