Python gi.repository.Gdk.flush() Examples
The following are 10
code examples of gi.repository.Gdk.flush().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
gi.repository.Gdk
, or try the search function
.
Example #1
Source File: backend_gtk3.py From Computable with MIT License | 6 votes |
def show(self): 'populate the combo box' self._updateson = False # flush the old cbox = self.cbox_lineprops for i in range(self._lastcnt-1,-1,-1): cbox.remove_text(i) # add the new for line in self.lines: cbox.append_text(line.get_label()) cbox.set_active(0) self._updateson = True self._lastcnt = len(self.lines) self.dlg.show()
Example #2
Source File: backend_gtk3.py From matplotlib-4-abaqus with MIT License | 6 votes |
def show(self): 'populate the combo box' self._updateson = False # flush the old cbox = self.cbox_lineprops for i in range(self._lastcnt-1,-1,-1): cbox.remove_text(i) # add the new for line in self.lines: cbox.append_text(line.get_label()) cbox.set_active(0) self._updateson = True self._lastcnt = len(self.lines) self.dlg.show()
Example #3
Source File: backend_gtk3.py From neural-network-animation with MIT License | 6 votes |
def show(self): 'populate the combo box' self._updateson = False # flush the old cbox = self.cbox_lineprops for i in range(self._lastcnt-1,-1,-1): cbox.remove_text(i) # add the new for line in self.lines: cbox.append_text(line.get_label()) cbox.set_active(0) self._updateson = True self._lastcnt = len(self.lines) self.dlg.show()
Example #4
Source File: backend_gtk3.py From ImageFusion with MIT License | 6 votes |
def show(self): 'populate the combo box' self._updateson = False # flush the old cbox = self.cbox_lineprops for i in range(self._lastcnt-1,-1,-1): cbox.remove_text(i) # add the new for line in self.lines: cbox.append_text(line.get_label()) cbox.set_active(0) self._updateson = True self._lastcnt = len(self.lines) self.dlg.show()
Example #5
Source File: backend_gtk3.py From Computable with MIT License | 5 votes |
def flush_events(self): Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration(True) Gdk.flush() Gdk.threads_leave()
Example #6
Source File: backend_gtk3.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
def flush_events(self): # docstring inherited Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration() Gdk.flush() Gdk.threads_leave()
Example #7
Source File: backend_gtk3.py From matplotlib-4-abaqus with MIT License | 5 votes |
def flush_events(self): Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration(True) Gdk.flush() Gdk.threads_leave()
Example #8
Source File: backend_gtk3.py From neural-network-animation with MIT License | 5 votes |
def flush_events(self): Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration(True) Gdk.flush() Gdk.threads_leave()
Example #9
Source File: backend_gtk3.py From ImageFusion with MIT License | 5 votes |
def flush_events(self): Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration(True) Gdk.flush() Gdk.threads_leave()
Example #10
Source File: backend_gtk3.py From CogAlg with MIT License | 5 votes |
def flush_events(self): # docstring inherited Gdk.threads_enter() while Gtk.events_pending(): Gtk.main_iteration() Gdk.flush() Gdk.threads_leave()