interrupt_gui.InterruptGui Class Reference
Inheritance diagram for interrupt_gui.InterruptGui:

Pulic Methods

def close (self, event)
 
def cancel (self, event)
 
def run_gams (self)
 
def run (self, event)
 
def __init__ (self, parent, id, title, size)
 

Public Attributes

 t1
 
 log
 
 bu_run
 
 bu_cancel
 
 bu_close
 

Detailed Description

Definition at line 25 of file interrupt_gui.py.

Constructors

◆ __init__()

def interrupt_gui.InterruptGui.__init__ (   self,
  parent,
  id,
  title,
  size 
)

Definition at line 52 of file interrupt_gui.py.

52 def __init__(self, parent, id, title, size):
53  wx.Frame.__init__(self, parent, id, title, size=size)
54  self.SetBackgroundColour('lightgrey')
55 
56  wx.StaticText(self, -1, "GAMS Log:", (10, 10))
57  self.log = wx.TextCtrl(self, pos=(10, 30), size=(565, 485), style=wx.TE_MULTILINE)
58 
59  self.bu_run = wx.Button(self, -1, "Run", (10,520), (137, 33))
60  self.bu_run.Bind(wx.EVT_BUTTON, self.run)
61 
62  self.bu_cancel = wx.Button(self, -1, "Cancel", (360,520), (105, 33))
63  self.bu_cancel.Bind(wx.EVT_BUTTON, self.cancel)
64  self.bu_cancel.Disable()
65 
66  self.bu_close = wx.Button(self, -1, "Close", (470,520), (105, 33))
67  self.bu_close.Bind(wx.EVT_BUTTON, self.close)
68 

Methods

◆ cancel()

def interrupt_gui.InterruptGui.cancel (   self,
  event 
)

Definition at line 30 of file interrupt_gui.py.

References interrupt_gui.InterruptGui.t1.

◆ close()

def interrupt_gui.InterruptGui.close (   self,
  event 
)

Definition at line 27 of file interrupt_gui.py.

◆ run()

◆ run_gams()

def interrupt_gui.InterruptGui.run_gams (   self)

Definition at line 33 of file interrupt_gui.py.

References interrupt_gui.InterruptGui.log.

Referenced by interrupt_gui.InterruptGui.run().

Member Data Documentation

◆ bu_cancel

interrupt_gui.InterruptGui.bu_cancel

Definition at line 62 of file interrupt_gui.py.

Referenced by interrupt_gui.InterruptGui.run().

◆ bu_close

interrupt_gui.InterruptGui.bu_close

Definition at line 66 of file interrupt_gui.py.

Referenced by interrupt_gui.InterruptGui.run().

◆ bu_run

interrupt_gui.InterruptGui.bu_run

Definition at line 59 of file interrupt_gui.py.

Referenced by interrupt_gui.InterruptGui.run().

◆ log

interrupt_gui.InterruptGui.log

◆ t1

interrupt_gui.InterruptGui.t1

Definition at line 39 of file interrupt_gui.py.

Referenced by interrupt_gui.InterruptGui.cancel().