Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Public Attributes
FontSample.AboutDialog Class Reference

List of all members.

Public Member Functions

def __init__
def ok

Public Attributes

 parent
 result
 btnOk
 initial_focus

Detailed Description

Definition at line 802 of file FontSample.py.


Constructor & Destructor Documentation

def FontSample.AboutDialog.__init__ (   self,
  parent 
)

Definition at line 804 of file FontSample.py.

00804 
00805     def __init__(self, parent):
00806         Toplevel.__init__(self, parent)
00807         self.transient(parent)
00808         self.title('About')
00809         self.parent = parent
00810         self.result = None
00811         self.resizable(0, 0)
00812 
00813         infoLabel = Label(self, text=WINDOW_TITLE+'\nSupport page at %s' % SUPPORT_PAGE)
00814         infoLabel.pack(padx=5, pady=5)
00815         # now the frame for contents...
00816         contentFrame = Frame(self)
00817         self.btnOk = Button(contentFrame, text='OK', command=self.ok, default=ACTIVE)
00818         self.btnOk.pack(side=LEFT, padx=5, pady=5)
00819         contentFrame.pack()
00820         self.bind('<Return>', self.ok)
00821         self.grab_set()
00822         self.protocol('WM_DELETE_WINDOW', self.ok)
00823         self.initial_focus = self.btnOk
00824         self.wait_window(self)


Member Function Documentation

def FontSample.AboutDialog.ok (   self,
  event = None 
)

Definition at line 825 of file FontSample.py.

00825 
00826     def ok(self, event=None):
00827         self.withdraw()
00828         self.update_idletasks()
00829         self.parent.focus_set()
00830         self.destroy()
00831 

Here is the call graph for this function:


Member Data Documentation

Definition at line 816 of file FontSample.py.

Definition at line 822 of file FontSample.py.

Definition at line 808 of file FontSample.py.

Definition at line 809 of file FontSample.py.


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