Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
017adec0
Commit
017adec0
authored
May 13, 2013
by
Luke Campagnola
Browse files
merge with inp
parents
720c5c02
3344fb69
Changes
3
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/imageview/ImageView.py
View file @
017adec0
...
...
@@ -209,7 +209,7 @@ class ImageView(QtGui.QWidget):
*pos* Change the position of the displayed image
*scale* Change the scale of the displayed image
*transform* Set the transform of the disp
a
lyed image. This option overrides *pos*
*transform* Set the transform of the displ
a
yed image. This option overrides *pos*
and *scale*.
============== =======================================================================
"""
...
...
@@ -271,8 +271,9 @@ class ImageView(QtGui.QWidget):
if
levels
is
None
and
autoLevels
:
self
.
autoLevels
()
if
levels
is
not
None
:
## this does nothing since getProcessedImage sets these values again.
self
.
levelMax
=
levels
[
1
]
self
.
levelMin
=
levels
[
0
]
#self.levelMax = levels[1]
#self.levelMin = levels[0]
self
.
setLevels
(
*
levels
)
if
self
.
ui
.
roiBtn
.
isChecked
():
self
.
roiChanged
()
...
...
pyqtgraph/parametertree/ParameterItem.py
View file @
017adec0
...
...
@@ -157,3 +157,9 @@ class ParameterItem(QtGui.QTreeWidgetItem):
## since destroying the menu in mid-action will cause a crash.
QtCore
.
QTimer
.
singleShot
(
0
,
self
.
param
.
remove
)
## for python 3 support, we need to redefine hash and eq methods.
def
__hash__
(
self
):
return
id
(
self
)
def
__eq__
(
self
,
x
):
return
x
is
self
pyqtgraph/widgets/SpinBox.py
View file @
017adec0
...
...
@@ -313,7 +313,7 @@ class SpinBox(QtGui.QAbstractSpinBox):
s
=
[
D
(
-
1
),
D
(
1
)][
n
>=
0
]
## determine sign of step
val
=
self
.
val
for
i
in
range
(
abs
(
n
)):
for
i
in
range
(
int
(
abs
(
n
))
)
:
if
self
.
opts
[
'log'
]:
raise
Exception
(
"Log mode no longer supported."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment