Python gi.repository.Gdk.CURRENT_TIME Examples
The following are 8
code examples of gi.repository.Gdk.CURRENT_TIME().
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: application.py From gtg with GNU General Public License v3.0 | 5 votes |
def open_help(self, action, param): """Open help callback.""" try: Gtk.show_uri(None, "help:gtg", Gdk.CURRENT_TIME) except GLib.Error: log.error('Could not open help')
Example #2
Source File: ImageMenu.py From pychess with GNU General Public License v3.0 | 5 votes |
def __sub_setGrabbed(self, grabbed): if grabbed and not Gdk.pointer_is_grabbed(): Gdk.pointer_grab(self.subwindow.get_window(), True, Gdk.EventMask.LEAVE_NOTIFY_MASK | Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.BUTTON_PRESS_MASK, None, None, Gdk.CURRENT_TIME) Gdk.keyboard_grab(self.subwindow.get_window(), True, Gdk.CURRENT_TIME) elif Gdk.pointer_is_grabbed(): Gdk.pointer_ungrab(Gdk.CURRENT_TIME) Gdk.keyboard_ungrab(Gdk.CURRENT_TIME)
Example #3
Source File: window.py From dynamic-wallpaper-editor with GNU General Public License v3.0 | 5 votes |
def action_pic_open(self, *args): uri = 'file://' + self.view.get_active_pic().filename Gtk.show_uri(None, uri, Gdk.CURRENT_TIME)
Example #4
Source File: window.py From dynamic-wallpaper-editor with GNU General Public License v3.0 | 5 votes |
def action_pic_directory(self, *args): trunc = -1 * len(self.view.get_active_pic().filename.split('/')[-1]) uri = 'file://' + self.view.get_active_pic().filename Gtk.show_uri(None, uri[0:trunc], Gdk.CURRENT_TIME)
Example #5
Source File: main.py From dynamic-wallpaper-editor with GNU General Public License v3.0 | 5 votes |
def on_help_activate(self, *args): Gtk.show_uri(None, 'help:dynamic-wallpaper-editor', Gdk.CURRENT_TIME)
Example #6
Source File: devdocs_desktop.py From devdocs-desktop with GNU General Public License v3.0 | 5 votes |
def search(self, argv): term = str(argv[-1]) self.app.search_term(term) self.app.window.present_with_time(Gdk.CURRENT_TIME)
Example #7
Source File: main.py From drawing with GNU General Public License v3.0 | 5 votes |
def on_report(self, *args): """Action callback, opening a new issue on the github repo.""" win = self.props.active_window Gtk.show_uri_on_window(win, BUG_REPORT_URL, Gdk.CURRENT_TIME)
Example #8
Source File: main.py From drawing with GNU General Public License v3.0 | 5 votes |
def _show_help_page(self, suffix): win = self.props.active_window Gtk.show_uri_on_window(win, 'help:drawing' + suffix, Gdk.CURRENT_TIME)