Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: tkinter - global variable not working
Post: tkinter - global variable not working

Hello! I am using Tkinter and doing GUI so that there is a 'save', 'save as', and 'open' button, along with a text box. I have got everything working except the 'save' button. I Have tried to set t...
albry GUI 2 7,017 Jan-26-2019, 03:08 AM
    Thread: GUI and function not working together
Post: RE: GUI and function not working together

(Jan-06-2019, 02:24 PM)ichabod801 Wrote: You need to make a specific instance of StringVar. farenheit = StringVar assigns the general class StringVar to farenheit, not a specific instance of the cla...
albry Homework 2 2,535 Jan-15-2019, 07:32 AM
    Thread: Correct number wrong position func.
Post: RE: Correct number wrong position func.

(Jan-10-2019, 12:25 PM)Larz60+ Wrote: This can be greatly simplified, example: >>> list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] >>> list2 = [4, 8, 2, 0, 5] >>> # same number, w...
albry General Coding Help 5 5,963 Jan-11-2019, 10:58 AM
    Thread: Correct number wrong position func.
Post: Correct number wrong position func.

import random question = random.randint(1,1001) def get_user_input(): try: guess = int(input("Please enter a guess: ")) return guess except ValueError: print("Invalid...
albry General Coding Help 5 5,963 Jan-10-2019, 10:01 AM
    Thread: GUI and function not working together
Post: GUI and function not working together

))from tkinter import * from tkinter import ttk def farcel(*args): try: vals = float(fahrenheit.get()) celsius.set((vals - 32) * (5/9)) except ValueError: pass root ...
albry Homework 2 2,535 Jan-06-2019, 11:52 AM
    Thread: Looping and nested loops
Post: RE: Looping and nested loops

Thank you! The above was so much help! I will be okay to do all the averaging coding myself. I just COULDN'T figure out how to do the loop. I struggle with loop so just so I understand, with the fi...
albry General Coding Help 5 3,996 Dec-20-2018, 12:02 PM
    Thread: Looping and nested loops
Post: RE: Looping and nested loops

Sorry, I accidentally submitted it too early! I need help on how to make the day and week print. I know that I need the program to run through each day and say "enter the amount of rain for Monday o...
albry General Coding Help 5 3,996 Dec-20-2018, 11:16 AM
    Thread: Looping and nested loops
Post: Looping and nested loops

all_days = ["Monday", Tuesday", "Wednesday", "Thursday","Friday", "Saturday", "Sunday") total_rain = 0 total_weeks = 0 # number of weeks while True: try: total_weeks = int(input("Enter ...
albry General Coding Help 5 3,996 Dec-20-2018, 10:52 AM

User Panel Messages

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