fancywidgets.pyQtBased package¶
Submodules¶
fancywidgets.pyQtBased.ArgSetter module¶
-
class
fancywidgets.pyQtBased.ArgSetter.
ArgSetter
(title, argdict, stayOpen=False, saveLoadButton=False, savePath='config.txt', loadPath='config.txt', introduction=None, unpackDict=False)[source]¶ Bases:
PyQt4.QtGui.QDialog
Create an window to setup attributes graphically
useful as quick configurator for other functions/classes that need keyword arguments that must be passed graphically e.g. for py2exe/pyinstaller apps
-
show
()[source]¶ if the dialog is showed again or is not started with exec_ naming the done button to ‘update’ make more sense because now the dialog doesn’t block (anymore)
-
validators
= {<type 'int'>: <class 'PyQt4.QtGui.QIntValidator'>, <type 'float'>: <class 'PyQt4.QtGui.QDoubleValidator'>}¶
-
fancywidgets.pyQtBased.CircleWidget module¶
fancywidgets.pyQtBased.CodeEditor module¶
fancywidgets.pyQtBased.Console module¶
-
class
fancywidgets.pyQtBased.Console.
Console
(outputSignal=None, errorSignal=None, *args, **kwargs)[source]¶ Bases:
PyQt4.QtGui.QTextEdit
A simple qWidget with one read-only QTextEdit with a limited number of lines to display output generated with messages which print() in black and raise() in red color
-
MAXLINES
= 300¶
-
fancywidgets.pyQtBased.Dialogs module¶
-
class
fancywidgets.pyQtBased.Dialogs.
Dialogs
(dirname=None)[source]¶ Bases:
object
- saves the last path to save and open a file/directory
fancywidgets.pyQtBased.FingerTabWidget module¶
A vertical tab widget - code origin from: https://gist.github.com/LegoStormtroopr/5075267
-
class
fancywidgets.pyQtBased.FingerTabWidget.
AutoResizeFingerTabWidget
(parent=None, *args, **kwargs)[source]¶ Bases:
fancywidgets.pyQtBased.FingerTabWidget.FingerTabWidget
fancywidgets.pyQtBased.FwMinimalTextEditor module¶
fancywidgets.pyQtBased.FwTabWidget module¶
-
class
fancywidgets.pyQtBased.FwTabWidget.
FwTabWidget
(defaultTabWidget=<class 'PyQt4.QtGui.QWidget'>)[source]¶ Bases:
PyQt4.QtGui.QTabWidget
allow to iterate over all tabs using for tab in TabWidget...
- allow to give tabs (and not indexes) to:
- removeTab
- tabText
also: interactive... * adding of new tabs, * tab removal * tab renaming
-
addEmptyTab
(text='')[source]¶ Add a new DEFAULT_TAB_WIDGET, open editor to set text if no text is given
-
sigTabAdded
¶
fancywidgets.pyQtBased.FwTextEditor module¶
fancywidgets.pyQtBased.MenuBar module¶
-
class
fancywidgets.pyQtBased.MenuBar.
MenuBar
[source]¶ Bases:
PyQt4.QtGui.QMenuBar
QMenuBar with easier insertMenu methods methods are used from: http://scribus.info/svn/Scribus/trunk/Scribus/scribus/plugins/scripter/python/scripter_hooks.py
-
findMenu
(title)[source]¶ find a menu with a given title
@type title: string @param title: English title of the menu @rtype: QMenu @return: None if no menu was found, else the menu with title
-
insertMenuBefore
(before_menu, new_menu)[source]¶ Insert a menu after another menu in the menubar
@type: before_menu QMenu instance or title string of menu @param before_menu: menu which should be after the newly inserted menu @rtype: QAction instance @return: action for inserted menu
-
fancywidgets.pyQtBased.Table module¶
-
class
fancywidgets.pyQtBased.Table.
Table
(rows=3, cols=3, colFiled=False, rowFixed=False, parent=None)[source]¶ Bases:
PyQt4.QtGui.QTableWidget
A QTableWidget with: * Shortcuts: copy, paste, cut, insert/delete row/column * Context Menu * Cell range operations (copy, paste on multiple cells) * Save/open * import from clipboard * dynamic add of new rows and cells when needed
-
sigPathChanged
¶
-