Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
msi.PyDialog Class Reference
Inheritance diagram for msi.PyDialog:
Inheritance graph
[legend]
Collaboration diagram for msi.PyDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def title
def back
def cancel
def next
def xbutton
def control
def control
def text
def text
def bitmap
def bitmap
def line
def line
def pushbutton
def pushbutton
def radiogroup
def radiogroup
def checkbox
def checkbox

Public Attributes

 db
 name
 h

Detailed Description

Dialog class with a fixed layout: controls at the top, then a ruler,
then a list of buttons: back, next, cancel. Optionally a bitmap at the
left.

Definition at line 288 of file msi.py.


Constructor & Destructor Documentation

def msi.PyDialog.__init__ (   self,
  args,
  kw 
)
Dialog(database, name, x, y, w, h, attributes, title, first,
default, cancel, bitmap=true)

Definition at line 292 of file msi.py.

00292 
00293     def __init__(self, *args, **kw):
00294         """Dialog(database, name, x, y, w, h, attributes, title, first,
00295         default, cancel, bitmap=true)"""
00296         Dialog.__init__(self, *args)
00297         ruler = self.h - 36
00298         bmwidth = 152*ruler/328
00299         if kw.get("bitmap", True):
00300             self.bitmap("Bitmap", 0, 0, bmwidth, ruler, "PythonWin")
00301         self.line("BottomLine", 0, ruler, self.w, 0)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

def msi.PyDialog.back (   self,
  title,
  next,
  name = "Back",
  active = 1 
)
Add a back button with a given title, the tab-next button,
its name in the Control table, possibly initially disabled.

Return the button, so that events can be associated

Definition at line 309 of file msi.py.

00309 
00310     def back(self, title, next, name = "Back", active = 1):
00311         """Add a back button with a given title, the tab-next button,
00312         its name in the Control table, possibly initially disabled.
00313 
00314         Return the button, so that events can be associated"""
00315         if active:
00316             flags = 3 # Visible|Enabled
00317         else:
00318             flags = 1 # Visible
00319         return self.pushbutton(name, 180, self.h-27 , 56, 17, flags, title, next)

Here is the call graph for this function:

def msilib.Dialog.bitmap (   self,
  name,
  x,
  y,
  w,
  h,
  text 
) [inherited]

Definition at line 458 of file __init__.py.

00458 
00459     def bitmap(self, name, x, y, w, h, text):
00460         return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.bitmap (   self,
  name,
  x,
  y,
  w,
  h,
  text 
) [inherited]

Definition at line 631 of file msilib.py.

00631 
00632     def bitmap(self, name, x, y, w, h, text):
00633         return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)

Here is the call graph for this function:

def msi.PyDialog.cancel (   self,
  title,
  next,
  name = "Cancel",
  active = 1 
)
Add a cancel button with a given title, the tab-next button,
its name in the Control table, possibly initially disabled.

Return the button, so that events can be associated

Definition at line 320 of file msi.py.

00320 
00321     def cancel(self, title, next, name = "Cancel", active = 1):
00322         """Add a cancel button with a given title, the tab-next button,
00323         its name in the Control table, possibly initially disabled.
00324 
00325         Return the button, so that events can be associated"""
00326         if active:
00327             flags = 3 # Visible|Enabled
00328         else:
00329             flags = 1 # Visible
00330         return self.pushbutton(name, 304, self.h-27, 56, 17, flags, title, next)

Here is the call graph for this function:

def msilib.Dialog.checkbox (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next 
) [inherited]

Definition at line 473 of file __init__.py.

00473 
00474     def checkbox(self, name, x, y, w, h, attr, prop, text, next):
00475         return self.control(name, "CheckBox", x, y, w, h, attr, prop, text, next, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.checkbox (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next 
) [inherited]

Definition at line 646 of file msilib.py.

00646 
00647     def checkbox(self, name, x, y, w, h, attr, prop, text, next):
00648         return self.control(name, "CheckBox", x, y, w, h, attr, prop, text, next, None)

Here is the call graph for this function:

def msilib.Dialog.control (   self,
  name,
  type,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next,
  help 
) [inherited]

Definition at line 449 of file __init__.py.

00449 
00450     def control(self, name, type, x, y, w, h, attr, prop, text, next, help):
00451         add_data(self.db, "Control",
00452                  [(self.name, name, type, x, y, w, h, attr, prop, text, next, help)])
00453         return Control(self, name)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.control (   self,
  name,
  type,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next,
  help 
) [inherited]

Definition at line 622 of file msilib.py.

00622 
00623     def control(self, name, type, x, y, w, h, attr, prop, text, next, help):
00624         add_data(self.db, "Control",
00625                  [(self.name, name, type, x, y, w, h, attr, prop, text, next, help)])
00626         return Control(self, name)

Here is the call graph for this function:

def msilib.Dialog.line (   self,
  name,
  x,
  y,
  w,
  h 
) [inherited]

Definition at line 461 of file __init__.py.

00461 
00462     def line(self, name, x, y, w, h):
00463         return self.control(name, "Line", x, y, w, h, 1, None, None, None, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.line (   self,
  name,
  x,
  y,
  w,
  h 
) [inherited]

Definition at line 634 of file msilib.py.

00634 
00635     def line(self, name, x, y, w, h):
00636         return self.control(name, "Line", x, y, w, h, 1, None, None, None, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msi.PyDialog.next (   self,
  title,
  next,
  name = "Next",
  active = 1 
)
Add a Next button with a given title, the tab-next button,
its name in the Control table, possibly initially disabled.

Return the button, so that events can be associated

Definition at line 331 of file msi.py.

00331 
00332     def next(self, title, next, name = "Next", active = 1):
00333         """Add a Next button with a given title, the tab-next button,
00334         its name in the Control table, possibly initially disabled.
00335 
00336         Return the button, so that events can be associated"""
00337         if active:
00338             flags = 3 # Visible|Enabled
00339         else:
00340             flags = 1 # Visible
00341         return self.pushbutton(name, 236, self.h-27, 56, 17, flags, title, next)

Here is the call graph for this function:

def msilib.Dialog.pushbutton (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  text,
  next 
) [inherited]

Definition at line 464 of file __init__.py.

00464 
00465     def pushbutton(self, name, x, y, w, h, attr, text, next):
00466         return self.control(name, "PushButton", x, y, w, h, attr, None, text, next, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.pushbutton (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  text,
  next 
) [inherited]

Definition at line 637 of file msilib.py.

00637 
00638     def pushbutton(self, name, x, y, w, h, attr, text, next):
00639         return self.control(name, "PushButton", x, y, w, h, attr, None, text, next, None)

Here is the call graph for this function:

def msilib.Dialog.radiogroup (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next 
) [inherited]

Definition at line 467 of file __init__.py.

00467 
00468     def radiogroup(self, name, x, y, w, h, attr, prop, text, next):
00469         add_data(self.db, "Control",
00470                  [(self.name, name, "RadioButtonGroup",
00471                    x, y, w, h, attr, prop, text, next, None)])
00472         return RadioButtonGroup(self, name, prop)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.radiogroup (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  prop,
  text,
  next 
) [inherited]

Definition at line 640 of file msilib.py.

00640 
00641     def radiogroup(self, name, x, y, w, h, attr, prop, text, next):
00642         add_data(self.db, "Control",
00643                  [(self.name, name, "RadioButtonGroup",
00644                    x, y, w, h, attr, prop, text, next, None)])
00645         return RadioButtonGroup(self, name, prop)

Here is the call graph for this function:

def msilib.Dialog.text (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  text 
) [inherited]

Definition at line 454 of file __init__.py.

00454 
00455     def text(self, name, x, y, w, h, attr, text):
00456         return self.control(name, "Text", x, y, w, h, attr, None,
00457                      text, None, None)

Here is the call graph for this function:

Here is the caller graph for this function:

def msilib.Dialog.text (   self,
  name,
  x,
  y,
  w,
  h,
  attr,
  text 
) [inherited]

Definition at line 627 of file msilib.py.

00627 
00628     def text(self, name, x, y, w, h, attr, text):
00629         return self.control(name, "Text", x, y, w, h, attr, None,
00630                      text, None, None)

Here is the call graph for this function:

def msi.PyDialog.title (   self,
  title 
)

Definition at line 302 of file msi.py.

00302 
00303     def title(self, title):
00304         "Set the title text of the dialog at the top."
00305         # name, x, y, w, h, flags=Visible|Enabled|Transparent|NoPrefix,
00306         # text, in VerdanaBold10
00307         self.text("Title", 135, 10, 220, 60, 0x30003,
00308                   r"{\VerdanaBold10}%s" % title)

Here is the call graph for this function:

def msi.PyDialog.xbutton (   self,
  name,
  title,
  next,
  xpos 
)
Add a button with a given title, the tab-next button,
its name in the Control table, giving its x position; the
y-position is aligned with the other buttons.

Return the button, so that events can be associated

Definition at line 342 of file msi.py.

00342 
00343     def xbutton(self, name, title, next, xpos):
00344         """Add a button with a given title, the tab-next button,
00345         its name in the Control table, giving its x position; the
00346         y-position is aligned with the other buttons.
00347 
00348         Return the button, so that events can be associated"""
00349         return self.pushbutton(name, int(self.w*xpos - 28), self.h-27, 56, 17, 3, title, next)

Here is the call graph for this function:


Member Data Documentation

msilib.Dialog.db [inherited]

Definition at line 444 of file __init__.py.

msilib.Dialog.h [inherited]

Definition at line 446 of file __init__.py.

msilib.Dialog.name [inherited]

Definition at line 445 of file __init__.py.


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