frame

trying python tkinter creating widgets with classes (frame)

trying python tkinter creating widgets with classes (frame) Question: I am trying to create custom widgets with classes. I have one class, called CustomWidgets inside it, I have method for creating Frame object, then configure its side key with config method, but it gives an error. code; from tkinter import * from tkinter import ttk …

Total answers: 1

Tkinter Switching between multiple frames with 2 buttons

Tkinter Switching between multiple frames with 2 buttons Question: I am new to python and tk and trying to learn by creating a application. In this I want to have one window with 5 frames stacked on top of each other and two buttons called "Next" and "Back". When opening the window, frame_1 should be …

Total answers: 1

Frame border disappears when focus is lost on window

Frame border disappears when focus is lost on window Question: I have a tkinter window from which I open another window. This window contains a Frame which is located inside a Canvas. I’m going to make a picture from the window contents but the problem is that the frame border deactivates itself when the focus …

Total answers: 1

TKINTER get the position of LABEL in TEXT FRAME

TKINTER get the position of LABEL in TEXT FRAME Question: I have a TEXT Widget as a FRAME und add LABELS to it. Any way to get the position of the LABEL by clicking it? Not coordinates but rather position. Example: These are 15 different LABELS and I need the position of the LABEL ‘different …

Total answers: 1

WebDriver' object has no attribute 'switch_to_frame'

WebDriver' object has no attribute 'switch_to_frame' Question: I cannot switch to the sucessfully identified iFrame(s). The script identifies the iFrame (checked in debugger), but the switch to the iFrame fails and runs into the exception trap. Few times ago it worked perfectly. Message=’WebDriver’ object has no attribute ‘switch_to_frame’ What happened in the meantime? Chromedriver has …

Total answers: 2

Try to print frame '*' and diagonal in python

Try to print frame '*' and diagonal in python Question: I try to print ‘*’ in frame and in diagonal . This is what I did: x=10 y=10 def print_frame(n, m, c): print c * m for i in range(1, n – 1): print c ,’ ‘*(n-2-i),c, ‘ ‘*i , c , c print c …

Total answers: 1

Selenium in Python: "NoSuchElementException: Message: no such element: Unable to locate element"

Selenium in Python: "NoSuchElementException: Message: no such element: Unable to locate element" Question: I tried typing ‘abc’ in the first block of id and ‘cdef’ in the second block of password. However, the error code at the bottom comes up. from selenium import webdriver driver.get(‘http://sugang.korea.ac.kr’) I added an implicit wait to prevent the code from …

Total answers: 5

tkinter gui layout using frames and grid

tkinter gui layout using frames and grid Question: My gui layout looks almost nothing like what I expect so I assume there are some basics that I don’t understand. I assumed that frames contain their own ‘grid space’ (row, column) but the behavior I see doesn’t bear that out, and I’m at a loss for …

Total answers: 2

How do I change the background of a Frame in Tkinter?

How do I change the background of a Frame in Tkinter? Question: I have been creating an Email program using Tkinter, in Python 3.3. On various sites I have been seeing that the Frame widget can get a different background using Frame.config(background=”color”). However, when I use this in my Frames it gives the following error: …

Total answers: 2