pyviblib.gui.main
index
/usr/lib/python2.4/site-packages/pyviblib/gui/main.py

Main graphical user interface of PyVib2.
 
The following classes are exported :
    Main  --  the main window of PyVib2

 
Modules
       
Tkinter
pyviblib.gui.dialogs
os
pyviblib.io.parsers
pyviblib
pyviblib.gui.resources
sys
tkFileDialog
webbrowser
pyviblib.gui.widgets
pyviblib.gui.windows

 
Classes
       
pyviblib.gui.widgets.BaseWidget(__builtin__.object)
Main

 
class Main(pyviblib.gui.widgets.BaseWidget)
    The main window of PyVib2.
 
The following properties are exposed :
    master              -- reference to the root Tkinter.Tk object
    settings            -- dictionary with some application settings
    lastdir             -- last visited directory
    opened_vibmolecules -- list of molecules with the normal modes
 
The following functions are exported :
    register_window()   -- register a window in the Windows menu
    unregister_window() -- unregister a window from the Windows menu
    remove_thumbnail()  -- remove a thumbnail from the thumbnail pane
    activate()          -- activate a window
 
 
Method resolution order:
Main
pyviblib.gui.widgets.BaseWidget
__builtin__.object

Methods defined here:
__init__(self, master, startfiles=None)
Constructor of the class.
 
Positional arguments :
master -- must be a reference to the root Tkinter.Tk object
 
Keyword arguments :
startfiles -- list of files to be opened at startup (default None)
activate(self, window=None)
Activate a window.
 
Keyword arguments :
window -- window to be activated (default None)
          if None, activate oneself
 
Note : this won't under KDE, but works fine e.g. under IceWM (or Windows).
register_window(self, window)
Register a new window in the Windows menu.
 
Positional arguments :
window -- the window to be registered
          must be a subclass of pyviblib.gui.windows.BaseWindow
remove_thumbnail(self, thmb)
Remove a thumbnail from the thumbnail pane.
 
Positional arguments :
thmb -- thumbnail to be removed
unregister_window(self, window)
Remove a window from the Windows menu.
 
Positional arguments :
window -- the window to be registered
          must be a subclass of pyviblib.gui.windows.BaseWindow

Data and other attributes inherited from pyviblib.gui.widgets.BaseWidget:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'BaseWidget' objects>
list of weak references to the object (if defined)

 
Data
        __all__ = ['Main']
__author__ = 'Maxim Fedorovsky'

 
Author
        Maxim Fedorovsky