Commit Graph

54 Commits

Author SHA1 Message Date
Luke Campagnola
7d979bcf94 Check for missing ptree widget before accessing 2020-05-30 09:30:36 -07:00
2xB
4f1bf8bb18 GroupParameterItem: Did not pass changed options to ParameterItem
`ParameterItem` handles visibility changes in `optsChanged`.
`GroupParameterItem` overrides this function, but never calls
the super function, leading in visibility changes not being
applied. This PR fixes this by calling said function.

Fixes #788
2020-04-12 02:47:23 +02:00
rwalroth
455fdc2a2a Allowed actions to diplay title instead of name (#1069)
ActionParameterItem changed so that if there is
a title it will be displayed, otherwise displays name.
2019-11-19 20:05:45 -08:00
Matt Liberty
c52382c3b9 Moved emits after all method state updates since PySide2 immediately executes signals.
Pull request #907 addressed a specific case where a signal was emitted before a state update.
If an application's slot then calls back into the instance, the instance was in an inconsistent
state.  This commit audits and fixes similar issues throughout the pyqtgraph library.  This
commit fixes several latent issues:

* SignalProxy: flush -> sigDelayed -> signalReceived would have incorrectly resulted in timer.stop().
* ViewBox: resizeEvent -> sigStateChange -> background state
* ViewBox: setRange -> sigStateChange -> autoranging not updated correctly
* ViewBox: updateMatrix -> sigTransformChanged -> any _matrixNeedsUpdate = True -> ignored
* Parameter: Child may have missed state tree messages on insert or received extra on remove
* GraphicsView: updateMatrix -> sigDeviceRangeChanged/sigDeviceTransformChange -> before propagated to locked viewports.
2019-06-01 16:28:23 -04:00
Thomas A Caswell
da1bf54ec8
MNT: use raw for regular expression 2019-02-14 16:41:54 -05:00
Luke Campagnola
937e3420e2 Don't store children key in Parameter.opts (closes #494, fixes #493) 2018-06-05 15:20:15 -07:00
Luke Campagnola
51267f5696 int parameters use integer formatting 2018-04-25 14:54:35 -07:00
Luke Campagnola
2b0559fd75 adjust group parameter fg color 2018-01-31 08:44:09 -08:00
Petras Jokubauskas
a15057835a fix: set foreground color for items
which background color is statically set,
so that values of those would be readable
when OS uses dark theme.
2017-10-20 15:35:53 +02:00
Luke Campagnola
812a65461d action parameter minor ui adjustment 2017-09-29 08:59:37 -07:00
Luke Campagnola
ce7594b697 Add GroupParameter.sigAddNew signal 2017-09-29 08:59:14 -07:00
Luke Campagnola
2754427b25 systemsolver: add method for checking constraints / DOF 2017-09-29 08:58:00 -07:00
Luke Campagnola
eb1b7fc8bb add systemsolver copy method 2017-09-29 08:56:44 -07:00
Luke Campagnola
09b8e662b1 systemsolver: minor fixes 2017-09-29 08:56:28 -07:00
Luke Campagnola
bf31a5ba99 Parameter.child raises KeyError if requested child name does not exist 2017-09-29 08:55:36 -07:00
Luke Campagnola
0f910c45d1 Make parameter name,value inint args go through setValue and setName 2017-09-29 08:54:33 -07:00
Luke Campagnola
16f0e3034c Add tests for inpute/output type on a few parameter types 2017-08-02 15:03:58 -07:00
Luke Campagnola
b4e722f07b Loosen string type checking a bit; let asUnicode throw errors if it
needs to.
2017-07-31 17:16:46 -07:00
Luke Campagnola
c719ad4355 Check for existence of QtCore.QString before using it 2017-07-31 17:04:53 -07:00
Luke Campagnola
7761b9a23c Add basic type checking to parameters 2017-05-01 17:09:15 -07:00
Luke Campagnola
4aad24a52d Merge remote-tracking branch 'lidstrom83/Parameter_limits_fix' into spinbox-formatting 2016-12-09 09:54:39 -08:00
Luke Campagnola
f0e26d3add Limit lineedit height in parametertree to match spinbox style 2016-12-07 17:34:44 -08:00
Luke Campagnola
65e9052580 Fix parametertree sending bad options to spinbox 2016-12-06 22:56:55 -08:00
Luke Campagnola
c7923d3f95 Fix parameters sending 'children' key to setOpts on restoreState (fixes error seen in relativity demo)
Add debug replacement for sys.excepthook that prints full stack trace
2016-10-14 18:38:35 -07:00
lidstrom83
5322c0233b Fix bug where int and float parameter limits are not always set. 2016-05-03 12:25:05 -06:00
Eric Dill
4b15fa75d5 TST: Use pgcollections.OrderedDict for 2.6 compat 2015-08-02 17:08:07 -04:00
Eric Dill
5bfb903dac TST: python 3 generator compat
.keys() in python2 returns a list, .keys() in python3 returns a
generator. Wrap .keys() in a list so that you can index on it in python3
2015-07-11 11:20:29 -05:00
Luke Campagnola
f34b69e660 Fix #92 (thanks jaxankey) 2015-06-03 22:18:02 -04:00
Luke Campagnola
0976991efd Import from python2_3 for all uses of basestring, cmp, and xrange 2015-05-19 09:29:55 -04:00
Luke Campagnola
1df5103d94 Fixes following acq4 merge 2014-08-07 09:11:34 -04:00
Luke Campagnola
753ac9b4c4 Squashed commit of the following:
commit ca3fbe2ff9
Author: Luke Campagnola <luke.campagnola@gmail.com>
Date:   Thu Aug 7 08:41:30 2014 -0400

    Merged numerous updates from acq4:
    * Added HDF5 exporter
    * CSV exporter gets (x,y,y,y) export mode
    * Updates to SVG, Matplotlib exporter
    * Console can filter exceptions by string
    * Added tick context menu to GradientEditorItem
    * Added export feature to imageview
    * Parameter trees:
        - Option to save only user-editable values
        - Option to set visible title of parameters separately from name
        - Added experimental ParameterSystem for handling large systems of
            interdependent parameters
        - Auto-select editable portion of spinbox when editing
    * Added Vector.__abs__
    * Added replacement garbage collector for avoiding crashes on multithreaded Qt
    * Fixed "illegal instruction" caused by closing file handle 7 on OSX
    * configfile now reloads QtCore objects, Point, ColorMap, numpy arrays
    * Avoid triggering recursion issues in exception handler
    * Various bugfies and performance enhancements
2014-08-07 09:03:26 -04:00
Luke Campagnola
c3fdcc9ae5 Minor fix in list parameter 2014-05-21 23:25:07 -04:00
Luke Campagnola
88c55c9f98 Docstring updates for ParameterTree 2014-05-10 15:30:51 -04:00
Luke Campagnola
de022be634 Fixed Parameter 'readonly' option for bool, color, and text parameter types 2014-05-04 12:24:46 -04:00
Luke Campagnola
f18f2b11c8 Fix: TextParameterItem now obeys 'readonly' option 2014-04-30 13:00:56 -04:00
Luke Campagnola
2ce6196ac0 Fixed Parameter.sigValueChanging 2014-03-25 13:15:29 -04:00
tommy3001
da4bb3df23 List alignments class WidgetParameterItem 2014-02-15 11:42:36 +01:00
tommy3001
ddaa07afb1 "Arguments" added again (copy/paste issue) 2014-02-12 20:49:53 +01:00
tommy3001
f99fdaf2ce Merge remote-tracking branch 'remotes/upstream/develop' into develop 2014-02-08 08:50:17 +01:00
Luke Campagnola
193367a56b Signal cleanup:
- Renamed GraphicsView signals to avoid collision with ViewBox signals that
  are wrapped in PlotWidget: sigRangeChanged => sigDeviceRangeChanged and
  sigTransformChanged => sigDeviceTransformChanged.
- All signal disconnections that catch TypeError now also catch RuntimeError
  for pyside compatibility.
2014-02-07 10:38:41 -05:00
tommy3001
2a13994a2a Bugfix: Malformed tables.
All argument lists with `**Arguments:**`
2014-02-05 21:04:33 +01:00
tommy3001
8b6ff6b06a Bugfix: Malformed tables. 2014-02-05 20:03:25 +01:00
tommy3001
92d7bbe18e In list tables "**Arguments**", "Arguments:" changed to **Arguments:** 2014-02-03 21:13:10 +01:00
Luke Campagnola
a2e8290d8e console, graphicsscene, and 2nd-level graphicsitems 2013-12-23 07:51:33 -05:00
Luke Campagnola
91aa2f1c16 fixed TextParameter editor disappearing after focus lost 2013-08-27 12:00:26 -06:00
Luke Campagnola
6b3cfbc6fb Fixed parametertree selection bug 2013-08-18 23:02:01 -04:00
Luke Campagnola
46901ae83a ListParameter bugfix: allow unhashable types as parameter values. 2013-07-12 13:14:09 -04:00
Luke Campagnola
7cd3e663f9 experimental GL video widget
temporary fix for text parameter ignoring expanded option
Don't use os.EX_OK in pg.exit()
2013-07-10 00:02:16 -04:00
Luke Campagnola
09b16baed1 python3 fixes
imageview fix
2013-05-13 08:51:59 -04:00
Luke Campagnola
4dbc411d19 minor fixes 2013-02-12 23:10:25 -05:00