Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
distutils.command.bdist_msi.PyDialog Class Reference
Inheritance diagram for distutils.command.bdist_msi.PyDialog:
Inheritance graph
[legend]
Collaboration diagram for distutils.command.bdist_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 21 of file bdist_msi.py.


Constructor & Destructor Documentation

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

Definition at line 25 of file bdist_msi.py.

00025 
00026     def __init__(self, *args, **kw):
00027         """Dialog(database, name, x, y, w, h, attributes, title, first,
00028         default, cancel, bitmap=true)"""
00029         Dialog.__init__(self, *args)
00030         ruler = self.h - 36
00031         bmwidth = 152*ruler/328
00032         #if kw.get("bitmap", True):
00033         #    self.bitmap("Bitmap", 0, 0, bmwidth, ruler, "PythonWin")
00034         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 distutils.command.bdist_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 42 of file bdist_msi.py.

00042 
00043     def back(self, title, next, name = "Back", active = 1):
00044         """Add a back button with a given title, the tab-next button,
00045         its name in the Control table, possibly initially disabled.
00046 
00047         Return the button, so that events can be associated"""
00048         if active:
00049             flags = 3 # Visible|Enabled
00050         else:
00051             flags = 1 # Visible
00052         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 distutils.command.bdist_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 53 of file bdist_msi.py.

00053 
00054     def cancel(self, title, next, name = "Cancel", active = 1):
00055         """Add a cancel button with a given title, the tab-next button,
00056         its name in the Control table, possibly initially disabled.
00057 
00058         Return the button, so that events can be associated"""
00059         if active:
00060             flags = 3 # Visible|Enabled
00061         else:
00062             flags = 1 # Visible
00063         return self.pushbutton(name, 304, self.h-27, 56, 17, flags, title, next)

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 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 distutils.command.bdist_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 64 of file bdist_msi.py.

00064 
00065     def next(self, title, next, name = "Next", active = 1):
00066         """Add a Next button with a given title, the tab-next button,
00067         its name in the Control table, possibly initially disabled.
00068 
00069         Return the button, so that events can be associated"""
00070         if active:
00071             flags = 3 # Visible|Enabled
00072         else:
00073             flags = 1 # Visible
00074         return self.pushbutton(name, 236, self.h-27, 56, 17, flags, title, next)

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 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 distutils.command.bdist_msi.PyDialog.title (   self,
  title 
)

Definition at line 35 of file bdist_msi.py.

00035 
00036     def title(self, title):
00037         "Set the title text of the dialog at the top."
00038         # name, x, y, w, h, flags=Visible|Enabled|Transparent|NoPrefix,
00039         # text, in VerdanaBold10
00040         self.text("Title", 15, 10, 320, 60, 0x30003,
00041                   r"{\VerdanaBold10}%s" % title)

Here is the call graph for this function:

def distutils.command.bdist_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 75 of file bdist_msi.py.

00075 
00076     def xbutton(self, name, title, next, xpos):
00077         """Add a button with a given title, the tab-next button,
00078         its name in the Control table, giving its x position; the
00079         y-position is aligned with the other buttons.
00080 
00081         Return the button, so that events can be associated"""
00082         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: