Changeset 59:9a80d2c6acbf
- Timestamp:
- 12/09/10 00:18:19 (5 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface.py
r58 r59 š 400 400 list_frame.pack(side="top")š 401 401 š 402 š up = Button(automata_window, text="Up", command=handlers.upwards)š 403 š up.config(bg="red")š 404 š down = Button(automata_window, text="Down", command=handlers.downwards)š 405 š down.config(bg="orange")š 406 š to_top = Button(automata_window, text="To Top", command=handlers.to_top)š 407 š to_top.config(bg="yellow")š 408 š to_bottom = Button(automata_window, text="To Bottom", command=handlers.to_bottom)š 409 š to_bottom.config(bg="green")š 410 š delete = Button(automata_window, text="Delete", command=handlers.delete_state)š 411 š delete.config(bg="cyan")š 412 š up.pack(side="top", fill="x")š 413 š down.pack(side="top", fill="x")š 414 š to_top.pack(side="top", fill="x")š 415 š to_bottom.pack(side="top", fill="x")š 416 š delete.pack(side="top", fill="x")š š 402 manip_frame1 = Frame(automata_window, padx=10, pady=5)š š 403 up = Button(manip_frame1, text="Up", command=handlers.upwards, width=10)š š 404 to_top = Button(manip_frame1, text="To Top", command=handlers.to_top, width=10)š š 405 up.pack(side="left", fill="x")š š 406 to_top.pack(side="right", fill="x")š š 407 manip_frame1.pack(side="top", fill="x")š š 408 š š 409 manip_frame2 = Frame(automata_window, padx=10, pady=5)š š 410 down = Button(manip_frame2, text="Down", command=handlers.downwards, width=10)š š 411 to_bottom = Button(manip_frame2, text="To Bottom", command=handlers.to_bottom, width=10)š š 412 down.pack(side="left", fill="x")š š 413 to_bottom.pack(side="right", fill="x")š š 414 manip_frame2.pack(side="top", fill="x")š š 415 š š 416 delete = Button(automata_window, text="Delete", command=handlers.delete_state, width=10)š š 417 delete.pack(side="top")š 417 418 š 418 419 š ? ? š 471 472 š 472 473 š 473 š add_ state = Button(automata_window, text="Add", command=handlers.add)š474 š add_state .config(bg="blue")š475 š change_state = Button(a utomata_window, text="Change", command=handlers.change)š476 š change_state.config(bg="violet")š477 š add_state.pack(side="top", fill="x")š478 š change_state.pack(side="top", fill="x")šš 474 add_frame = Frame(automata_window, padx=10, pady=5)š š 475 add_state = Button(add_frame, text="Add", command=handlers.add, width=10)š š 476 change_state = Button(add_frame, text="Change", command=handlers.change, width=10)š š 477 add_state.pack(side="left", fill="x")š š 478 change_state.pack(side="right", fill="x")š š 479 add_frame.pack(side="top", fill="x")š 479 480 š 480 481 error=Label(automata_window)š ? ? š 524 525 Label(size_window).pack(side="top", fill="x")š 525 526 apply_frame = Frame(size_window, padx=10, pady=5)š 526 š apply_size = Button(apply_frame, text="Apply")š 527 š apply_size.config(bg="yellow")š š 527 apply_size = Button(apply_frame, text="Apply", width=6)š 528 528 apply_size.pack(side="left", fill="x")š 529 š close_size = Button(apply_frame, text="Close", command=handlers.hide_size_window)š 530 š close_size.config(bg="green")š š 529 close_size = Button(apply_frame, text="Close", command=handlers.hide_size_window, width=6)š 531 530 close_size.pack(side="right", fill="x")š 532 531 apply_frame.pack(side="top", fill="x")š
Note: See TracChangeset
for help on using the changeset viewer.