Skip to content
Advertisement

Tag: canvas

How to save a tkinter canvas as an image

I would like to save my drawing on a tkinter canvas as an image so I can open it for later use. I currently use this save system from this post however this is not a good way for me. First I would need to add an offset and second if i set the application so only some part of

Adding a header line to a scrollable canvas with weights

I’m trying get a list of .xlsm files from a folder, and generate a scrollable canvas from which the tabs needed for import can be selected manually using the check buttons (all having the same tab format e.g. tab1, tab2, tab3, tab4). The major issue I’m having is getting weights to work correctly for the headers in relation to their

Delete text from Canvas, after some time (tkinter)

I need to remove text from canvas after some time. I tried this: Result: It does not even appear the text. And this: Not working too. Please help, I looked almost everywhere and I didn’t find how to do that. Answer You have to give after a reference to a function. The way you’re doing it is immediately calling the

Python Tkinter How to get the image of the Canvas?

As the title says, I need to get the image of a canvas To get the image of a Label, I simply type I can check to see if AmImage is in aLabel using cget() so how do I do the same with the Canvas? cget(“image”) doesn’t seem to work Answer I Found a way to do it, So I

I can’t scroll grids in frames in canvas (tkinter)

I am using Tkinter for a project, and I found in Stackoverflow a code to create a scrollbar, which I understood well. I wanted to scroll some buttons, which worked, but now when I try to scroll some grids (button and scales), it doesn’t work. I have tried to manage my code with answers here and here, but I didn’t

Writing text over a PDF in python3

I am trying to write some string to a PDF file at some position. I found a way to do this and implemented it like this: It throws me an error at can.save() line The error : Have read up at a lot of places on the internet. Found the same method everywhere. Is it the wrong way to do.

Advertisement