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
# | |
# Common72.py | |
# GUI Constant Definitions | |
# | |
SQUARE = 1 | |
ROUND = 2 | |
ARROW = 3 | |
POINT_DOWN = 0 |
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
# | |
# GUI Common Class Definitions | |
# | |
from Common71 import * | |
class GUICommon: | |
def turnon(self): | |
self.status = STATUS_ON | |
if not self.blink: self.update() |
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
# | |
# Common71.py | |
# GUI Constant Definitions | |
# | |
SQUARE = 1 | |
ROUND = 2 | |
ARROW = 3 | |
POINT_DOWN = 0 |
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 * | |
class App: | |
def __init__(self, master): | |
fm = Frame(master, width=300, height=200) | |
Button(fm, text='Top').pack(side=TOP) | |
Button(fm, text='Middle').pack(side=TOP, pady=10) | |
Button(fm, text='Bottom').pack(side=TOP) | |
fm.pack() |
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 * | |
class App: | |
def __init__(self, master): | |
fm = Frame(master, width=300, height=200) | |
Button(fm, text='Left').pack(side=LEFT) | |
Button(fm, text='Center').pack(side=LEFT, padx=10) | |
Button(fm, text='Right').pack(side=LEFT) | |
fm.pack() |
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 * | |
class App: | |
def __init__(self, master): | |
master.geometry("300x200") | |
fm = Frame(master) | |
Button(fm, text='Top').pack(side=TOP, fill=BOTH, expand=1) | |
Button(fm, text='Center').pack(side=TOP, fill=BOTH, expand=1) | |
Button(fm, text='Bottom').pack(side=TOP, fill=BOTH, expand=1) | |
fm.pack(fill=BOTH, expand=YES) |
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 * | |
class App: | |
def __init__(self, master): | |
master.geometry("300x200") | |
fm = Frame(master) | |
Button(fm, text='Left').pack(side=LEFT, fill=BOTH, expand=1) | |
Button(fm, text='Center').pack(side=LEFT, fill=BOTH, expand=1) | |
Button(fm, text='Right').pack(side=LEFT, fill=BOTH, expand=1) | |
fm.pack(fill=BOTH, expand=YES) |
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 * | |
class App: | |
def __init__(self,master): | |
master.geometry("300x200") | |
fm = Frame(master) | |
Button(fm, text='Top').pack(side=TOP, fill=X, expand=YES) | |
Button(fm, text='Center').pack(side=TOP, fill=X, expand=YES) | |
Button(fm, text='Bottom').pack(side=TOP, fill=X, expand=YES) | |
fm.pack(fill=BOTH, expand=YES) |
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 * | |
class App: | |
def __init__(self, master): | |
master.geometry("300x200") | |
fm = Frame(master) | |
Button(fm, text='Left').pack(side=LEFT, fill=X, expand=NO) | |
Button(fm, text='Center').pack(side=LEFT, fill=X, expand=NO) | |
Button(fm, text='Right').pack(side=LEFT, fill=X, expand=YES) | |
fm.pack(fill=BOTH, expand=YES) |
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 * | |
class App: | |
def __init__(self,master): | |
master.geometry("300x200") | |
fm = Frame(master) | |
Button(fm, text='Top').pack(side=TOP, fill=X) | |
Button(fm, text='Center').pack(side=TOP, fill=X) | |
Button(fm, text='Bottom').pack(side=TOP, fill=X) | |
fm.pack(fill=BOTH, expand=YES) |