ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.iconfTool.gui.modals.HelpModal Class Reference
Inheritance diagram for python.iconfTool.gui.modals.HelpModal:
Collaboration diagram for python.iconfTool.gui.modals.HelpModal:

Public Member Functions

None __init__ (self, int start_x, int start_y, int width, int height)
 
None add_line (self, str text, int blank_lines=1)
 
None show_help (self)
 
None refresh (self)
 
None destroy (self)
 

Public Attributes

 help_window
 
 begin_x
 
 x
 
 window
 

Detailed Description

Definition at line 39 of file modals.py.

Constructor & Destructor Documentation

◆ __init__()

None python.iconfTool.gui.modals.HelpModal.__init__ (   self,
int  start_x,
int  start_y,
int  width,
int   height 
)

Reimplemented from python.iconfTool.gui.modals.Modal.

Definition at line 40 of file modals.py.

40  def __init__(
41  self, start_x: int, start_y: int, width: int, height: int
42  ) -> None:
43  super().__init__(start_x, start_y, width, height)
44  self.help_window = self.window.derwin(
45  self.height - 2, self.width - 2, 1, 1
46  )
47 
48  self.begin_y, self.begin_x = self.window.getparyx()
49  self.y, self.x = self.begin_y, self.begin_x
50  self.y += 2
51  self.x += 2
52 

Member Function Documentation

◆ add_line()

None python.iconfTool.gui.modals.HelpModal.add_line (   self,
str  text,
int   blank_lines = 1 
)

Definition at line 53 of file modals.py.

53  def add_line(self, text: str, blank_lines: int = 1) -> None:
54  self.window.addstr(self.y, self.x, text)
55  self.y += blank_lines
56 

◆ destroy()

None python.iconfTool.gui.modals.Modal.destroy (   self)
inherited

Definition at line 21 of file modals.py.

21  def destroy(self) -> None:
22  del self.window
23 
24 

◆ refresh()

None python.iconfTool.gui.modals.Modal.refresh (   self)
inherited

Definition at line 18 of file modals.py.

18  def refresh(self) -> None:
19  self.window.refresh()
20 

◆ show_help()

None python.iconfTool.gui.modals.HelpModal.show_help (   self)

Reimplemented in python.iconfTool.gui.modals.DoubleHelpModal, and python.iconfTool.gui.modals.SingleHelpModal.

Definition at line 57 of file modals.py.

57  def show_help(self) -> None:
58  pass
59 
60 

Member Data Documentation

◆ begin_x

python.iconfTool.gui.modals.HelpModal.begin_x

Definition at line 46 of file modals.py.

◆ help_window

python.iconfTool.gui.modals.HelpModal.help_window

Definition at line 42 of file modals.py.

◆ window

python.iconfTool.gui.modals.Modal.window
inherited

Definition at line 12 of file modals.py.

◆ x

python.iconfTool.gui.modals.HelpModal.x

Definition at line 47 of file modals.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18