|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


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) |
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.
| def __init__ | ( | self, | |
| * | args, | ||
| ** | kw | ||
| ) |
Dialog(database, name, x, y, w, h, attributes, title, first, default, cancel, bitmap=true)
| 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
| 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
| 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
| def title | ( | self, | |
| title | |||
| ) |
| 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