jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
613 stars 68 forks source link

Sub-window with Meter generates dimension error #543

Closed chrisw-thomas closed 5 years ago

chrisw-thomas commented 6 years ago

Bug Report

2018-10-12 09:35:59,986 appJar:WARNING [Line 25->2283/setSize]: Specified dimensions (400, 25) less than requested dimensions (378, 265)

I create a sub-window, set its size using .setSize and then add a progress widget using .addMeter. When I start the Python application I get the error shown above.

Context


The simple code is below.

    win.startSubWindow('progress', modal=True)
    win.setSize('400x25')
    win.setResizable(False)
    win.setOnTop(stay=True)
    win.setStretch('both')
    win.setSticky('nsew')
    win.addMeter('progress')
    win.setMeter('progress', 0, text=None)
    win.setMeterFill('progress', 'Gray')
    win.stopSubWindow()

appJar: 0.93.0 Python: 2.7.14 TCL: 8.5, TK: 8.5 Platform: Windows pid: 18668
locale: en_GB
jarvisteach commented 6 years ago

Thanks for this, I've been noticing it a lot more recently. It was a warning I added a long time ago, to point out to students that their requested dimensions were off, but I think the logic got a bit broken somewhere long the way, and I'm just going to remove it.

chrisw-thomas commented 6 years ago

No problem... when is the next appJar release due? Presumably this will be v1.0?

jarvisteach commented 6 years ago

I'll push out a new 0.9x release soon, I'm a way off having all the documentation ready for the 1.0 release :(

jarvisteach commented 6 years ago

Oh, btw, you can change the logging level, so warnings don't show, have a look here: http://appjar.info/pythonLogging/

chrisw-thomas commented 6 years ago

Excellent - thank you.