Skip to content

Commit

Permalink
Fixed typo in advanced loops docs #564
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvisteach committed Mar 8, 2019
1 parent 9d5d0a1 commit e712c2f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mkdocs/docs/pythonLoopsAndSleeps.md
Expand Up @@ -98,7 +98,7 @@ def acceleratingCountdown():
if counter > 0:
app.setLabel("counter", str(counter))
counter -= 1
app.after(100*counter, myLoop)
app.after(100*counter, acceleratingCountdown)

app.after(0, acceleratingCountdown)
```
Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs/docs/whatsNew.md
Expand Up @@ -30,6 +30,7 @@
* <div class="cb cb-imp">Improved</div>[Scales](/inputWidgets/#scale) and other widgets can now have their state changed when in [ttk](/pythonTtk/) mode - [#465](https://github.com/jarvisteach/appJar/issues/465)
* <div class="cb cb-imp">Improved</div>Better change log? - [#219](https://github.com/jarvisteach/appJar/issues/219)
* <div class="cb cb-imp">Improved</div>appJar now uses tkinter style `config` functions - [#49](https://github.com/jarvisteach/appJar/issues/49)
* <div class="cb cb-fix">Fixed</div>Fixed typo in documentation page: [advancedLoops](/pythonLoopsAndSleeps/#advanced-loops) - [#564](https://github.com/jarvisteach/appJar/issues/564)
* <div class="cb cb-fix">Fixed</div>python2.6 now runs, after removing dependency on argsparse - [#547](https://github.com/jarvisteach/appJar/issues/547)
* <div class="cb cb-fix">Fixed</div>Resolved issues sometimes changing bg/fg in [ttk](/pythonTtk) - [#536](https://github.com/jarvisteach/appJar/issues/536)
* <div class="cb cb-fix">Fixed</div>Resolved issues with changing [radiobutton](/inputWidgets/#set-radiobuttons) type in ttk - [#534](https://github.com/jarvisteach/appJar/issues/534)
Expand Down
19 changes: 19 additions & 0 deletions examples/issues/issue564.py
@@ -0,0 +1,19 @@
import sys
sys.path.append("../../")

from appJar import gui

with gui() as app:
app.label('counter')

# global variable to store the count
counter = 10

def acceleratingCountdown():
global counter
if counter > 0:
app.setLabel("counter", str(counter))
counter -= 1
app.after(100*counter, acceleratingCountdown)

app.after(0, acceleratingCountdown)

0 comments on commit e712c2f

Please sign in to comment.