tkinter-canvas
tkinter: using scrollbars on a canvas
I\'m trying to make a canvas scrollable. However, once I try to set up scrollbars to work with the canvas, tkinter seems to completely ignore the dimensions I initially set for my canvas. I\'ve tried[详细]
2023-04-12 19:07 分类:问答Python: PIL - [Errno 32] Broken pipe when saving .png
What I\'m trying to do here is save the contents of a Tkinter Canvas as a .png image using PIL. This is my save function (\'graph\' is the canvas).[详细]
2023-03-11 17:57 分类:问答How do I remove the light grey border around my Canvas widget?
I\'ve been messing with the Tkinter Canvas widget in order to see if I could make some aesthetically pleasing widgets, and I have a few questions.[详细]
2023-01-27 18:32 分类:问答Version of Canvas create_text() that supports word wrap?
Is there a create_text() mode or technique that supports word wrap? I\'m stuck using create_text() vs. a Label or Text widget because I\'m placing text on top of an image on my Canvas.[详细]
2023-01-24 03:16 分类:问答How to place a widget in a Canvas widget in Tkinter?
I want basically to be able to use a Canvas as a meta container for other widgets. I want to divide my GUI into a left, center and middle section. Within each section I would like to be able to plac[详细]
2023-01-22 22:45 分类:问答Python Tkinter Embed Matplotlib in GUI
I\'m trying to embed a plot in my Tkinter GUI coded in Python. I believe the code below succeeds in simply putting a graph into a canvas, but I don\'t have any control of the canvas location within th[详细]
2023-01-22 19:13 分类:问答How to scroll a tkinter canvas to an absolute position?
I\'m using Python and tkinter. I have a Canvas widget that will display just one image. Mos开发者_开发知识库t times the image will be larger than the canvas dimensions, but sometimes it will be smalle[详细]
2023-01-20 02:11 分类:问答Different line widths with canvas.create_line?
Does anyone have any idea why I get different line widths on the canvas in the following example? from Tkinter import *[详细]
2022-12-29 10:26 分类:问答How to check if two object are overlapping in a Canvas widget?
Say I have objects wit开发者_如何学运维hin the Canvas with a tags \'stopped\' and \'flying\'.[详细]
2022-12-23 02:50 分类:问答How to print contents of a tkinter.Canvas widget?
How would I print contents of a Python Tkinter.Canvas widget? I\'ve read that it\'s possible to print to a postscript printer from this contr开发者_开发问答ol but examples are hard to come by.[详细]
2022-12-21 15:43 分类:问答