#!/usr/bin/python ''' SVPlayer pygtk default constants and modules (c) 2011-2012,2020,2023 Jan ONDREJ (SAL) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ''' # https://developer.gnome.org/documentation/tutorials.html #from __future__ import absolute_import import gi.pygtkcompat gi.require_version('Gtk', '4.0') gi.require_version('Adw', '1') #gi.pygtkcompat.enable() #gi.pygtkcompat.enable_gtk(version='4.0') from gi.repository import GLib, GObject, Gtk, Gdk, Adw, Gio, GdkPixbuf #gi.require_version('GdkX11', '4.0') #from gi.repository import GdkX11 #from gi.overrides import keysyms #import gobject, gtk, pango #Gdk = gtk.gdk; Pango = pango GObject.threads_init() #Gdk.threads_init() def totime(t): return "%d:%02d:%02d" % (t/60/60,(t/60)%60,t%60) #class Screen(Gtk.DrawingArea): # __gsignals__ = { # #"expose-event": "override" # #"draw": "override" # } # def draw(self, cr, width, height): # # Fill the background with black # cr.set_source_rgb(0, 0, 0) # cr.rectangle(0, 0, width, height) # cr.fill() def debug_shell(): import IPython return IPython.embed