GNOME Bugzilla – Bug 590642
gtk.gdk.CURRENT_TIME doesn't exist.
Last modified: 2009-08-09 04:53:32 UTC
Please describe the problem: the docs at: http://www.pygtk.org/docs/pygtk/class-gtkmountoperation.html#function-gtk--show-uri mention that gtk.gdk.CURRENT_TIME can be used, however it does not seem to be found: Steps to reproduce: james@home:~$ python Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Xlib: extension "RANDR" missing on display ":0.0". >>> gtk.gdk <module 'gtk.gdk' (built-in)> >>> gtk.gdk.CURRENT_TIME Traceback (most recent call last):
+ Trace 216769
>>> import gtk.gdk >>> gtk.gdk.CURRENT_TIME Traceback (most recent call last):
>>> james@home:~$ Actual results: (as shown above) Expected results: gtk.gdk.CURRENT_TIME would exist. Does this happen every time? yes. Other information: bulk of the code i'm using. if there is a better alternative please let me know. class whatever: def __init__(self): gtk.about_dialog_set_url_hook(self.show_uri) self.menu = gtk.Menu() # ... def show_uri(self, dialog, link): gtk.show_uri(dialog.get_screen(), link, 0) def run(): self.show_uri(self.menu, 'http://www.bugzilla.gnome.org') x = whatever() x.run()
Fixed, thanks.
pleasure. thank you.