Skip to content

Commit

Permalink
Upgraded deprecated Gdk.color.parse to newer Gdk.color_parse (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsian83 authored Feb 8, 2023
1 parent 4b702ee commit 62de0d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BlockParty.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class BlockParty:

bw, bh, gridwidth = 11, 20, 1

colors = [Color(Gdk.Color.parse(i)[1]) for i in [
colors = [Color(Gdk.color_parse(i)) for i in [
'#101944', 'blue', 'green', 'cyan',
'red', 'magenta', 'YellowGreen', 'white'
]]
Expand Down Expand Up @@ -150,11 +150,11 @@ def __init__(self, toplevel_window, da, font_face='Sans', font_size=14, gcs=0):
self.window.connect("key-press-event", self.keypress_cb)
self.window.connect("key-release-event", self.keyrelease_cb)

self.color_back = Color(Gdk.Color.parse("#343e76")[1])
self.color_glass = Color(Gdk.Color.parse("#6e82e6")[1])
self.color_glass_back = Color(Gdk.Color.parse("#4960d4")[1])
self.color_score = Color(Gdk.Color.parse("white")[1])
self.color_ui_text = Color(Gdk.Color.parse("#eeeeee")[1])
self.color_back = Color(Gdk.color_parse("#343e76"))
self.color_glass = Color(Gdk.color_parse("#6e82e6"))
self.color_glass_back = Color(Gdk.color_parse("#4960d4"))
self.color_score = Color(Gdk.color_parse("white"))
self.color_ui_text = Color(Gdk.color_parse("#eeeeee"))

self.bwpx = int(self.window_w / (self.bw + self.bw / 2 + 2))
self.bhpx = int(self.window_h / (self.bh + 2))
Expand Down

0 comments on commit 62de0d4

Please sign in to comment.