jarvisteach / appJar

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

[Feature request] Adjustable Canvas size #568

Closed zombiestruck closed 5 years ago

zombiestruck commented 5 years ago

Feature Request


Current situation


Canvas size is static

Suggested Behavior


Canvas should be resizeable app.setCanvasSize(canvasName, x, y)

jarvisteach commented 5 years ago

Hi @zombiestruck - I'm not sure I'm seeing the same behaviour.

At the moment, the canvas widget fills its space, so if you stretch the GUI, the canvas stretches to fill it.

You can set a specific width & height:

app.setCanvasWidth(name, width)
app.setCanvasHeight(name, height)

And you can configure it to not resize with the GUI:

app.setSticky('')