FXDialogBox

DialogBox window. When receiving ID_CANCEL or ID_ACCEPT, the DialogBox breaks out of the modal loop and returns False or True, respectively. To close the DialogBox when not running modally, simply send it ID_HIDE.


FXDialogBox(a, name, opts=DECOR_TITLE| DECOR_BORDER, x=0, y=0, w=0, h=0, pl=10, pr=10, pt=10, pb=10, hs=4, vs=4)

Construct free-floating dialog.

ArgumentTypeDefaultDescription
aFXApp  
nameString  
optsIntDECOR_TITLE| DECOR_BORDER 
xInt0 
yInt0 
wInt0 
hInt0 
plInt10 
prInt10 
ptInt10 
pbInt10 
hsInt4 
vsInt4 


FXDialogBox(owner, name, opts=DECOR_TITLE| DECOR_BORDER, x=0, y=0, w=0, h=0, pl=10, pr=10, pt=10, pb=10, hs=4, vs=4)

Construct dialog which will always float over the owner window.

ArgumentTypeDefaultDescription
ownerFXWindow  
nameString  
optsIntDECOR_TITLE| DECOR_BORDER 
xInt0 
yInt0 
wInt0 
hInt0 
plInt10 
prInt10 
ptInt10 
pbInt10 
hsInt4 
vsInt4 


execute(placement=PLACEMENT_CURSOR)

Run modal invocation of the dialog.

Reimplemented in FXInputDialog, and FXReplaceDialog.

ArgumentTypeDefaultDescription
placementIntPLACEMENT_CURSOR 


Class flags

ID_CANCEL

Closes the dialog, cancel the entry.

ID_ACCEPT

Closes the dialog, accept the entry.