[dialog/CPS] Un pitit wrapper autour du widget yesno
This commit is contained in:
parent
acd7d8fd7f
commit
5a50ac5c37
1 changed files with 14 additions and 0 deletions
|
@ -391,3 +391,17 @@ class Dialog(object):
|
||||||
(hour, minute, second) = get_time(hour, minute, second, day, month, year)
|
(hour, minute, second) = get_time(hour, minute, second, day, month, year)
|
||||||
return (year, month, day) + (hour, minute, second)
|
return (year, month, day) + (hour, minute, second)
|
||||||
|
|
||||||
|
def confirm(self, text, title, defaultno=False):
|
||||||
|
"""wrapper autour du widget yesno"""
|
||||||
|
return self.dialog.yesno(
|
||||||
|
text,
|
||||||
|
no_collapse=True,
|
||||||
|
colors=True,
|
||||||
|
no_mouse=True,
|
||||||
|
timeout=self.timeout,
|
||||||
|
title=title,
|
||||||
|
defaultno=defaultno,
|
||||||
|
width=0, height=0,
|
||||||
|
backtitle="Appuyez sur MAJ pour selectionner du texte"
|
||||||
|
) == self.dialog.DIALOG_OK
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue