Skip to content

Commit

Permalink
Fix bug with player
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Feb 1, 2019
1 parent f17f74b commit 0ab4935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyforms_gui/controls/control_player/control_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def video_index(self): return int(self._value.get(1)) if self._value else None
def video_index(self, value): self._value.set(1, value)

@property
def max(self): return int(self._value.get(7))
def max(self):
if self._value is None or self._value=='':
return 0
return int(self._value.get(7))

@property
def frame(self): return self._current_frame
Expand Down

0 comments on commit 0ab4935

Please sign in to comment.