Skip to content

Commit

Permalink
Change the Repeat Count widget #38
Browse files Browse the repository at this point in the history
  • Loading branch information
RMPR committed Jan 16, 2021
1 parent c15fbac commit 543a474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atbswp/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@ def infinite_playback(event):
def repeat_count(event):
"""Set the repeat count."""
current_value = settings.CONFIG.getint('DEFAULT', 'Repeat Count')
dialog = SliderDialog(None, title="Choose a repeat count", size=(500, 50), default_value=current_value)
dialog = wx.NumberEntryDialog(None, message="Choose a repeat count", prompt="", caption="Repeat Count", value=current_value, min=1, max=999)
dialog.ShowModal()
new_value = dialog.value
new_value = dialog.Value
dialog.Destroy()
settings.CONFIG['DEFAULT']['Repeat Count'] = str(new_value)

Expand Down

0 comments on commit 543a474

Please sign in to comment.