Back to index

python3.2  3.2.2
Classes | Functions | Variables
pynche.PyncheWidget Namespace Reference

Classes

class  PyncheWidget
class  Helpwin
class  PopupViewer

Functions

def make_view_popups

Variables

int KEEPALIVE_TIMER = 500

Detailed Description

Main Pynche (Pythonically Natural Color and Hue Editor) widget.

This window provides the basic decorations, primarily including the menubar.
It is used to bring up other windows.

Function Documentation

def pynche.PyncheWidget.make_view_popups (   switchboard,
  root,
  extrapath 
)

Definition at line 290 of file PyncheWidget.py.

00290 
00291 def make_view_popups(switchboard, root, extrapath):
00292     viewers = []
00293     # where we are in the file system
00294     dirs = [os.path.dirname(__file__)] + extrapath
00295     for dir in dirs:
00296         if dir == '':
00297             dir = '.'
00298         for file in os.listdir(dir):
00299             if file[-9:] == 'Viewer.py':
00300                 name = file[:-3]
00301                 try:
00302                     module = __import__(name)
00303                 except ImportError:
00304                     # Pynche is running from inside a package, so get the
00305                     # module using the explicit path.
00306                     pkg = __import__('pynche.'+name)
00307                     module = getattr(pkg, name)
00308                 if hasattr(module, 'ADDTOVIEW') and module.ADDTOVIEW:
00309                     # this is an external viewer
00310                     v = PopupViewer(module, name, switchboard, root)
00311                     viewers.append(v)
00312     # sort alphabetically
00313     viewers.sort()
00314     return viewers

Here is the call graph for this function:


Variable Documentation

Definition at line 14 of file PyncheWidget.py.