Skip to content

Commit

Permalink
Make #27 compatible with Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
moqmar committed Nov 18, 2020
1 parent 32996ef commit 193515b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pick/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def start_everything_first_time(self, on_window_map=None):
int(math.ceil(self.snapsize[0] / 2 / cursor_scale) * 2),
self.w.get_screen().get_display().get_maximal_cursor_size().width
])
print "Adjusted cursor size: " + str(cursor_scaled_snapsize)
print("Adjusted cursor size: " + str(cursor_scaled_snapsize))
self.snapsize = (cursor_scaled_snapsize, cursor_scaled_snapsize)
except:
# No gnome/dconf?!
print "Couldn't determine correct cursor size. If you experience any flickering, try launching with CURSOR_SCALE=2"
print("Couldn't determine correct cursor size. If you experience any flickering, try launching with CURSOR_SCALE=2")

devman = self.w.get_screen().get_display().get_device_manager()
self.pointer = devman.get_client_pointer()
Expand Down

0 comments on commit 193515b

Please sign in to comment.