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
2a6cc842
Commit
2a6cc842
authored
May 08, 2012
by
Luke Campagnola
Browse files
documentation fixes
parent
fd32dc74
Changes
2
Hide whitespace changes
Inline
Side-by-side
graphicsItems/GridItem.py
View file @
2a6cc842
...
...
@@ -6,7 +6,7 @@ from pyqtgraph.Point import Point
__all__
=
[
'GridItem'
]
class
GridItem
(
UIGraphicsItem
):
"""
**Bases:** :class:`UIGraphicsItem <pyqtgraph.UIGraphicsItem>
'
**Bases:** :class:`UIGraphicsItem <pyqtgraph.UIGraphicsItem>
`
Displays a rectangular grid of lines indicating major divisions within a coordinate system.
Automatically determines what divisions to use.
...
...
widgets/ProgressDialog.py
View file @
2a6cc842
...
...
@@ -6,18 +6,6 @@ class ProgressDialog(QtGui.QProgressDialog):
"""
Extends QProgressDialog for use in 'with' statements.
============== ================================================================
**Arguments:**
labelText (required)
cancelText Text to display on cancel button, or None to disable it.
minimum
maximum
parent
wait Length of time (im ms) to wait before displaying dialog
busyCursor If True, show busy cursor until dialog finishes
============== ================================================================
Example::
with ProgressDialog("Processing..", minVal, maxVal) as dlg:
...
...
@@ -27,6 +15,19 @@ class ProgressDialog(QtGui.QProgressDialog):
raise Exception("Processing canceled by user")
"""
def
__init__
(
self
,
labelText
,
minimum
=
0
,
maximum
=
100
,
cancelText
=
'Cancel'
,
parent
=
None
,
wait
=
250
,
busyCursor
=
False
):
"""
============== ================================================================
**Arguments:**
labelText (required)
cancelText Text to display on cancel button, or None to disable it.
minimum
maximum
parent
wait Length of time (im ms) to wait before displaying dialog
busyCursor If True, show busy cursor until dialog finishes
============== ================================================================
"""
isGuiThread
=
QtCore
.
QThread
.
currentThread
()
==
QtCore
.
QCoreApplication
.
instance
().
thread
()
if
not
isGuiThread
:
self
.
disabled
=
True
...
...
Write
Preview
Supports
Markdown
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