appbase package¶
appbase is the foundation for a pyQt based application including:
- save, load, autosave
- session management
- fullscreen with F11
- close-dialog
- system tray control
Submodules¶
appbase.Application module¶
appbase.Launcher module¶
-
class
appbase.Launcher.
Launcher
(title='PYZ-Launcher', icon=None, start_script=None, left_header=None, right_header=None, file_type='pyz')[source]¶ Bases:
PyQt4.QtGui.QMainWindow
A graphical starter for *.pyz files created by the save-method from appbase.MainWindow
NEEDS AN OVERHAUL ... after that’s done it will be able to:
show all *.pyz-files in a filetree
show the session specific ...
- icon
- description
- author etc.
start, remove, rename, modify a session
modify, start a certain state of a session
appbase.MainWindow module¶
appbase.MultiWorkspaceWindow module¶
-
class
appbase.MultiWorkspaceWindow.
MultiWorkspaceWindow
(workspaceClass, *args, **kwargs)[source]¶ Bases:
appbase.MainWindow.MainWindow
Adding workspace management to appbase.MainWindow
- ‘Workspace’ menu in menu bar
- Switch between workspaces with [Ctrl]+[Page up/down]
- Add workspace with [Ctrl]+[W]
- Remove current workspace with [Ctrl]+[Q]
appbase.Server module¶
appbase.Session module¶
-
class
appbase.Session.
Session
(args, **kwargs)[source]¶ Bases:
PyQt4.QtCore.QObject
Session management to be accessible in QtGui.QApplication.instance().session
- extract the opened (as pyz-zipped) session in a temp folder
- create 2nd temp-folder for sessions to be saved
- send a close signal to all child structures when exit
- write a log file with all output
- enable icons in menus of gnome-sessions [linux only]
- gives option of debug mode
-
blockingSave
(path)[source]¶ saved session to file - returns after finish only called by interactiveTutorial-save at the moment
-
checkMaxSessions
(nMax=None)[source]¶ check whether max. number of saved sessions is reached if: remove the oldest session
-
sigRestore
¶
-
sigSave
¶