canvas

Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work?

Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work? Question: I want the outline of a rectangle in a canvas to get a bigger width, when the rectangle is in state "disabled". Therefore I use the parameter "disabledwidth=4". But when the rectangle is in state "disabled", the outline has still a width …

Total answers: 1

Kivy canvas doesn't show

Kivy canvas doesn't show Question: I am trying to use canvas. I didn’t create .kv files. It should show up a white line. from kivy.graphics import Line from kivy.uix.widget import Widget # Canvas from the code class CanvasExample3App(App): class CanvasEx3(Widget): def __init__(self, **kwargs): super().__init__(**kwargs) with self.canvas: Line(points=(0, 0, 300, 500), width=2) CanvasExample3App().run() It shows nothing. …

Total answers: 1

Two tkinter Scrollbars conflict: the first scrolls correctly and the second does not

Two tkinter Scrollbars conflict: the first scrolls correctly and the second does not Question: I have a tabcontrol where the scrollbars of Tab 2.1 and Tab 2.2 conflict. Tab 2.2 scrollbar scrolls vertically correctly. However, Tab 2.1‘s scrollbar doesn’t scroll. How can I solve the problem? from tkinter import ttk import tkinter as tk window …

Total answers: 1

Tkinter Canvas postscript saves as 1×1

Tkinter Canvas postscript saves as 1×1 Question: I am making trying to make a chess game using Canvas. But when i try to get the image that i made using canvas, it returns a 1×1 image. Heres the code that i am using from tkinter import * from PIL import Image, ImageTk, EpsImagePlugin import io …

Total answers: 1

Clearing tkinter canvas content doesn't work

Clearing tkinter canvas content doesn't work Question: I have a tkinter canvas where a label and a matplotlib plot are shown. I want to update the content of the canvas and therefore delete what was shown before. To do this I found that canvas.delete(‘all’) is the way to do this. According to the code below …

Total answers: 1

Tkinker and online resizing of .jpg with Pillow (PIL)

Tkinker and online resizing of .jpg with Pillow (PIL) Question: Trying to include a slider to resize images online in a Tkinker-GUI-Application of python. Problem: Canvas Resizing works, Inital Show of original sized image, too. But when using the slider the picture is not resized – it just shows very short in the adjusted size …

Total answers: 1

How to update and show in real time on label 2 what user write in ENTRY label1?

How to update and show in real time on label 2 what user write in ENTRY label1? Question: If i have this ENTRY label1 on pos1, how can i update and show "in real time" the text i write on other label 2 in position2? label1 = Entry(root, font=(‘aria label’, 15), fg=’black’) label1.insert(0, ‘enter your …

Total answers: 2

How to insert grid system to place label and more in rows and columns?

How to insert grid system to place label and more in rows and columns? Question: how can I insert a grid system with rows and columns to place the labels, insert boxes and buttons? instead of entering them with x,y coordinates. For example, in this case, I have to insert label1 with the cordinates x,y. …

Total answers: 2

Selenium python- Is it possible to draw a circle around clicked GUI elements?

Selenium python- Is it possible to draw a circle around clicked GUI elements? Question: I am new to selenium and I am wondering if I could draw a red circle around anything my selenium script clicks before taking a screenshot of the page (I already know how to do the screenshot). I think that I …

Total answers: 2