After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590642 - gtk.gdk.CURRENT_TIME doesn't exist.
gtk.gdk.CURRENT_TIME doesn't exist.
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gdk
unspecified
Other All
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-03 15:49 UTC by James
Modified: 2009-08-09 04:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description James 2009-08-03 15:49:39 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):
  • File "<stdin>", line 1 in <module>
AttributeError: 'module' object has no attribute 'CURRENT_TIME'
>>> import gtk.gdk
>>> gtk.gdk.CURRENT_TIME
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
AttributeError: 'module' object has no attribute 'CURRENT_TIME'
>>> 
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()
Comment 1 Paul Pogonyshev 2009-08-08 20:36:42 UTC
Fixed, thanks.
Comment 2 James 2009-08-09 04:53:32 UTC
pleasure. thank you.