Skip to content

Commit

Permalink
fix bug: flip_cursor path
Browse files Browse the repository at this point in the history
  • Loading branch information
nachifur committed Aug 25, 2021
1 parent b777397 commit cd1c4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,9 @@ def flip_fc(self, event):
i_cur = 2
status_toggle = [self.magnifier, self.rotation, self.flip]
if status_toggle[i_cur].Value:
flip_cursor_path = get_resource_path(str(Path("img")/"flip_cursor.png"))
self.SetCursor(
wx.Cursor((wx.Image(str(Path("img")/"flip_cursor.png"), wx.BITMAP_TYPE_PNG))))
wx.Cursor((wx.Image(flip_cursor_path, wx.BITMAP_TYPE_PNG))))
for i in range(len(status_toggle)):
if i != i_cur and status_toggle[i].Value:
status_toggle[i].Value = False
Expand Down

0 comments on commit cd1c4e3

Please sign in to comment.