Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
pynche.PyncheWidget.PopupViewer Class Reference

List of all members.

Public Member Functions

def __init__
def menutext
def underline
def popup
def __eq__
def __lt__

Private Attributes

 __m
 __name
 __sb
 __root
 __menutext
 __underline
 __window

Detailed Description

Definition at line 253 of file PyncheWidget.py.


Constructor & Destructor Documentation

def pynche.PyncheWidget.PopupViewer.__init__ (   self,
  module,
  name,
  switchboard,
  root 
)

Definition at line 254 of file PyncheWidget.py.

00254 
00255     def __init__(self, module, name, switchboard, root):
00256         self.__m = module
00257         self.__name = name
00258         self.__sb = switchboard
00259         self.__root = root
00260         self.__menutext = module.ADDTOVIEW
00261         # find the underline character
00262         underline = module.ADDTOVIEW.find('%')
00263         if underline == -1:
00264             underline = 0
00265         else:
00266             self.__menutext = module.ADDTOVIEW.replace('%', '', 1)
00267         self.__underline = underline
00268         self.__window = None

Here is the caller graph for this function:


Member Function Documentation

def pynche.PyncheWidget.PopupViewer.__eq__ (   self,
  other 
)

Definition at line 283 of file PyncheWidget.py.

00283 
00284     def __eq__(self, other):
00285         return self.__menutext == other.__menutext

def pynche.PyncheWidget.PopupViewer.__lt__ (   self,
  other 
)

Definition at line 286 of file PyncheWidget.py.

00286 
00287     def __lt__(self, other):
00288         return self.__menutext < other.__menutext
00289 

Definition at line 269 of file PyncheWidget.py.

00269 
00270     def menutext(self):
00271         return self.__menutext

def pynche.PyncheWidget.PopupViewer.popup (   self,
  event = None 
)

Definition at line 275 of file PyncheWidget.py.

00275 
00276     def popup(self, event=None):
00277         if not self.__window:
00278             # class and module must have the same name
00279             class_ = getattr(self.__m, self.__name)
00280             self.__window = class_(self.__sb, self.__root)
00281             self.__sb.add_view(self.__window)
00282         self.__window.deiconify()

Here is the call graph for this function:

Definition at line 272 of file PyncheWidget.py.

00272 
00273     def underline(self):
00274         return self.__underline


Member Data Documentation

Definition at line 255 of file PyncheWidget.py.

Definition at line 259 of file PyncheWidget.py.

Definition at line 256 of file PyncheWidget.py.

Definition at line 258 of file PyncheWidget.py.

Definition at line 257 of file PyncheWidget.py.

Definition at line 266 of file PyncheWidget.py.

Definition at line 267 of file PyncheWidget.py.


The documentation for this class was generated from the following file: