Use gobject to call idle_add instead of gtk
Under Gtk3 and pygtkcompat, gtk module has not the idle_add method. issue7810 review64451002
This commit is contained in:
1 parent
11838f1dce
commit
8cb697582c
1 file changed
+2
-1
@@ -2,6 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
'Action'
|
||||
import gtk
|
||||
import gobject
|
||||
from tryton.gui.window.view_form.screen import Screen
|
||||
import tryton.rpc as rpc
|
||||
import tryton.common as common
|
||||
@@ -145,4 +146,4 @@ class Action(SignalEvent):
|
||||
def display():
|
||||
if self.screen.widget.props.window:
|
||||
self.display()
|
||||
gtk.idle_add(display)
|
||||
gobject.idle_add(display)
|
||||
Reference in new issue
Block a user