Package node_manager_fkie :: Module detailed_msg_box :: Class MessageBox
[frames] | no frames]

Class MessageBox

source code

python_qt_binding.QtWidgets.QDialog --+
                                      |
                                     MessageBox

Instance Methods
 
__init__(self, icon, title, text, detailed_text="", buttons=Cancel | Ok, parent=None) source code
 
setAcceptButton(self, button)
Sets the button with given ID to accept button if more then one button with AcceptRole was added to this dialog.
source code
 
setRejectButton(self, button)
Sets the button with given ID to reject button if more then one button with RejectRole was added to this dialog.
source code
 
on_toggled_details(self, checked) source code
 
resizeEvent(self, event) source code
 
exec_(self) source code
 
accept(self) source code
 
reject(self) source code
 
hideEvent(self, event) source code
 
closeEvent(self, event) source code
Static Methods
 
about(parent, title, text, detailed_text='', buttons=Close) source code
 
information(parent, title, text, detailed_text='', buttons=Close) source code
 
question(parent, title, text, detailed_text='', buttons=Yes | No | Cancel) source code
 
warning(parent, title, text, detailed_text='', buttons=Ok) source code
 
critical(parent, title, text, detailed_text='', buttons=Ok) source code
Class Variables
  NoIcon = 0
  Information = 1
  Warning = 2
  Critical = 3
  Question = 4
  NoButton = 0
  Ok = 1
  Open = 2
  Save = 4
  Cancel = 8
  Close = 16
  Discard = 32
  Apply = 64
  Reset = 128
  RestoreDefaults = 256
  Help = 512
  SaveAll = 1024
  Yes = 2048
  YesToAll = 4096
  No = 8192
  NoToAll = 16384
  Abort = 32768
  Retry = 65536
  Ignore = 131072
  Avoid = 262144
Method Details

setAcceptButton(self, button)

source code 

Sets the button with given ID to accept button if more then one button with AcceptRole was added to this dialog. Adds the buttton to the box if is not already in. :param button: int

setRejectButton(self, button)

source code 

Sets the button with given ID to reject button if more then one button with RejectRole was added to this dialog. Adds the buttton to the box if is not already in. :param button: int