Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Images in Toplevel()
Post: RE: Images in Toplevel()

(Mar-08-2021, 04:39 PM)deanhystad Wrote: Toplevel works the same as the window returned by Tk(). I cannot run your program because it references several files I don't have. I don't want to change ...
finndude GUI 4 1,137 Mar-09-2021, 09:39 AM
    Thread: Images in Toplevel()
Post: RE: Images in Toplevel()

(Mar-08-2021, 02:18 PM)Larz60+ Wrote: Show what you tried (code). Hi, This is the whole program. import tkinter as tk from tkinter import * import tkinter.font as font import random import time fr...
finndude GUI 4 1,137 Mar-08-2021, 02:25 PM
    Thread: Images in Toplevel()
Post: Images in Toplevel()

Hi All, How do i add an image into a window in Tkinter when using toplevel. Ive tried with PIL and haven't got working results.
finndude GUI 4 1,137 Mar-08-2021, 02:16 PM
    Thread: PyImage4
Post: PyImage4

Hi ALl, I have the below code, I keep getting this error message and am not sure why or what to change. The code and the error is below. import tkinter as tk from tkinter import * import tkinter.fon...
finndude GUI 1 1,004 Mar-07-2021, 11:56 AM
    Thread: Grid Placement In Python
Post: Grid Placement In Python

Hi All, I have this code and it all works. What the issue I'm having is keeping everything all in the correct place because when some you get the right answer the buttons move across. I think it beca...
finndude GUI 2 771 Mar-06-2021, 12:47 PM
    Thread: Closing before complete
Post: RE: Closing before complete

(Mar-05-2021, 12:42 AM)BashBedlam Wrote: You need to remove the parentheses from window_4.destroy like this: window_4.after(3000, window_4.destroy)Then it will do what you want. Yep! that works tha...
finndude General Coding Help 3 560 Mar-05-2021, 08:44 AM
    Thread: Closing before complete
Post: Closing before complete

Hi All, This code is supposed to have the computer pick a number, the player has 3 lives to guess the number, and when they run out of lives the game ends. I am trying to represent the lives through ...
finndude General Coding Help 3 560 Mar-04-2021, 09:51 PM
    Thread: Grid_Destory() Not Working
Post: RE: Grid_Destory() Not Working

(Mar-04-2021, 03:21 PM)deanhystad Wrote: I tried "quit" and it complained that "Quitter" object had no attribute '__name__'. You program wasn't exiting after a few seconds, it was crashing. I did ...
finndude General Coding Help 6 816 Mar-04-2021, 05:11 PM
    Thread: Grid_Destory() Not Working
Post: RE: Grid_Destory() Not Working

(Mar-04-2021, 02:05 PM)deanhystad Wrote: You should not have sleep commands in a GUI application. They prevent mainloop from running and stop window updates. Instead of this: print("The game will ...
finndude General Coding Help 6 816 Mar-04-2021, 02:18 PM
    Thread: Grid_Destory() Not Working
Post: Grid_Destory() Not Working

Hi All, I have the below code. Basically, the computer picks a number and the user's job is to guess the number, they have three tries. Every time they guess incorrectly they lose a life and the pict...
finndude GUI 2 520 Mar-04-2021, 02:00 PM
    Thread: Grid_Destory() Not Working
Post: RE: Grid_Destory() Not Working

(Mar-03-2021, 09:18 PM)bowlofred Wrote: Each time in your callback you mark the window to be removed from the grid. But nothing happens until your function exits and TK redraws the screen via tasks...
finndude General Coding Help 6 816 Mar-04-2021, 09:43 AM
    Thread: Grid_Destory() Not Working
Post: Grid_Destory() Not Working

Hi All, I have the below code. Basically what the program does is, the computer chooses a number and the users role is to try and guess the number, they have 3 tries, if they don't do it within the t...
finndude General Coding Help 6 816 Mar-03-2021, 06:53 PM
    Thread: Referenced before assignment
Post: RE: Referenced before assignment

(Mar-02-2021, 07:46 PM)damian0612 Wrote: Your error is on line 40, this script hasno line 40, are you importing this code to another python file? Basically when it gets to line 40 to validate the pa...
finndude General Coding Help 3 661 Mar-02-2021, 08:11 PM
    Thread: Referenced before assignment
Post: Referenced before assignment

Hi All, Im having an error where it says that the variable is being referenced before assignment. As seen below. Error:Incorrect Username, please try again Exception in Tkinter callback Traceback (m...
finndude General Coding Help 3 661 Mar-02-2021, 07:39 PM
    Thread: tkinter get function
Post: RE: tkinter get function

(Mar-02-2021, 03:51 PM)ndc85430 Wrote: On line 25, should you really be passing the string "clicked", or your function? MEant to be the function, a silly mistake by me. Everything is now working, th...
finndude GUI 2 541 Mar-02-2021, 03:53 PM
    Thread: tkinter get function
Post: tkinter get function

Hi, I have the below code. What i want it to do is that when the button is clicked it outputs what is in the two entry boxes. However when I press the button nothing happens, what am I doing wrong? ...
finndude GUI 2 541 Mar-02-2021, 03:41 PM
    Thread: Looping if condition isnt met
Post: RE: Looping if condition isnt met

thanks for the help!
finndude General Coding Help 6 672 Oct-16-2020, 06:33 PM
    Thread: Looping if condition isnt met
Post: Looping if condition isnt met

elif time_limit_ask[0] == "r" or time_limit_ask[0] == "R": def random_questions(): test_1 = input ("enter number ") test_2 = input ("enter number ") int(tes...
finndude General Coding Help 6 672 Oct-16-2020, 05:04 PM
    Thread: How to break a loop in this case?
Post: RE: How to break a loop in this case?

Hi, Im not a 100% certain but hopefully this will help. If you want the program to stop when you press the key "S". Then maybe something within the loop like. if key_press = s: breakIf you have ...
finndude General Coding Help 10 1,283 Sep-24-2020, 05:19 AM
    Thread: Python Fullscreen
Post: Python Fullscreen

Hi all, i was just wondering if there is any code that will automatically open the python shell in full screen when I run the program I am not opening a GUI
finndude General Coding Help 5 970 May-03-2020, 01:27 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020