OpenQuizz
Une application de gestion des contenus pédagogiques
PyDialog Class Reference
Inheritance diagram for PyDialog:
Collaboration diagram for PyDialog:

Public Member Functions

def __init__ (self, *args, **kw)
 
def title (self, title)
 
def back (self, title, next, name="Back", active=1)
 
def cancel (self, title, next, name="Cancel", active=1)
 
def next (self, title, next, name="Next", active=1)
 
def xbutton (self, name, title, next, xpos)
 

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.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ back()

def 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

◆ cancel()

def 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

◆ next()

def 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

◆ title()

def title (   self,
  title 
)

◆ xbutton()

def 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

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