Definition at line 302 of file emcalc_gui.py.
◆ __init__()
def emcalc_gui.TextView.__init__ |
( |
|
self | ) |
|
Definition at line 303 of file emcalc_gui.py.
305 self.text_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
306 self.text_window.set_title(
'Value with Text')
307 self.text_window.set_position(gtk.WIN_POS_MOUSE)
308 self.text_window.set_default_size(500, 300)
311 self.text_window.add(vbox)
313 sw = gtk.ScrolledWindow()
314 sw.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
315 sw.set_border_width(self.__margin)
318 textview = gtk.TextView()
319 self.textbuffer = textview.get_buffer()
322 hbox = gtk.HButtonBox()
323 hbox.set_layout(gtk.BUTTONBOX_END)
324 hbox.set_border_width(self.__margin)
325 vbox.pack_start(hbox, expand=
False)
327 close_button = gtk.Button(stock = gtk.STOCK_CLOSE)
328 close_button.connect(
"clicked", self.cb_hide_window)
329 hbox.add(close_button)
◆ cb_hide_window()
def emcalc_gui.TextView.cb_hide_window |
( |
|
self, |
|
|
|
widget, |
|
|
|
data = None |
|
) |
| |
Definition at line 334 of file emcalc_gui.py.
334 def cb_hide_window(self, widget, data=None) :
335 self.text_window.hide_all()
◆ get_window()
def emcalc_gui.TextView.get_window |
( |
|
self | ) |
|
Definition at line 331 of file emcalc_gui.py.
331 def get_window(self) :
332 return self.text_window
◆ __margin
emcalc_gui.TextView.__margin |
|
private |
◆ text_window
emcalc_gui.TextView.text_window |
◆ textbuffer
emcalc_gui.TextView.textbuffer |
The documentation for this class was generated from the following file: