Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scoreboard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scoreboard.py')
-rw-r--r--scoreboard.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/scoreboard.py b/scoreboard.py
index 4aa6997..75cdef0 100644
--- a/scoreboard.py
+++ b/scoreboard.py
@@ -15,33 +15,33 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
-import gtk
+from gi.repository import Gtk
import logging
from playerscoreboard import PlayerScoreboard
_logger = logging.getLogger('memorize-activity')
-class Scoreboard(gtk.EventBox):
+class Scoreboard(Gtk.EventBox):
def __init__(self):
- gtk.EventBox.__init__(self)
+ Gtk.EventBox.__init__(self)
self.players = {}
self.current_buddy = None
- self.vbox = gtk.VBox(False)
+ self.vbox = Gtk.VBox(False)
- fill_box = gtk.EventBox()
- fill_box.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#4c4d4f'))
+ fill_box = Gtk.EventBox()
+ fill_box.modify_bg(Gtk.STATE_NORMAL, Gdk.color_parse('#4c4d4f'))
fill_box.show()
self.vbox.pack_end(fill_box, True, True)
- scroll = gtk.ScrolledWindow()
- scroll.props.shadow_type = gtk.SHADOW_NONE
- scroll.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
+ scroll = Gtk.ScrolledWindow()
+ scroll.props.shadow_type = Gtk.SHADOW_NONE
+ scroll.set_policy(Gtk.POLICY_NEVER, Gtk.POLICY_AUTOMATIC)
scroll.add_with_viewport(self.vbox)
scroll.set_border_width(0)
- scroll.get_child().set_property('shadow-type', gtk.SHADOW_NONE)
+ scroll.get_child().set_property('shadow-type', Gtk.SHADOW_NONE)
self.add(scroll)
self.show_all()