This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
global widgets # this list will contain widgets to be deleted | |
widgets = [] | |
def square(): | |
global widgets | |
for widget in widgets[:]: | |
widget.destroy() | |
widgets.remove(widget) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 11/1/14 Python 3.2 | |
__version__ = '0.1' | |
# main.py | |
import time | |
# Main | |
def main(): | |
print("This program will convert Fahrenheit to Celsius or Celsius to Fahrenheit") | |
time.sleep(1) |