Changeset 97:faa45a728871
- Timestamp:
- 12/14/10 22:04:28 (5 years ago)
- Branch:
- default
- Parents:
- 94:da7e8ebce313 (diff), 96:daa8203cf796 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
-
interface.py (modified) (2 diffs)
-
interface.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
interface.py
r94 r97 ˆà 5 5 import tkFileDialogˆà 6 6 import tkMessageBoxˆà ˆà 7 import webbrowserˆà 7 8 from Tkinter import *ˆà 8 9 ˆà òÀæ òÀæ ˆà 90 91 self.draw()ˆà 91 92 ˆà 92 ˆà def show_help_window(self, event=None):ˆà 93 ˆà passˆà 94 ˆà ˆà 95 ˆà def hide_help_window(self, event=None):ˆà 96 ˆà passˆà ˆà 93 def show_help_window(self):ˆà ˆà 94 url = 'Help\Help.html'ˆà ˆà 95 webbrowser.open_new_tab(url)ˆà 97 96 ˆà 98 97 def zoom_in(self, event=None, zoom_rate=1):ˆà -
interface.py
r95 r97 ˆà 578 578 manip_frame1 = Frame(automata_window, padx=10, pady=5)ˆà 579 579 up = Button(manip_frame1, text="Up", command=handlers.upwards, width=10)ˆà 580 ˆà to_top = Button(manip_frame1, text="To Top", command=handlers.to_top, width=10)ˆà ˆà 580 to_top = Button(manip_frame1, text="To Top",ˆà ˆà 581 command=handlers.to_top, width=10)ˆà 581 582 up.pack(side="left", fill="x")ˆà 582 583 to_top.pack(side="right", fill="x")ˆà òÀæ òÀæ ˆà 584 585 ˆà 585 586 manip_frame2 = Frame(automata_window, padx=10, pady=5)ˆà 586 ˆà down = Button(manip_frame2, text="Down", command=handlers.downwards, width=10)ˆà ˆà 587 down = Button(manip_frame2, text="Down",ˆà ˆà 588 command=handlers.downwards, width=10)ˆà 587 589 to_bottom = Button(manip_frame2, text="To Bottom",ˆà 588 590 command=handlers.to_bottom, width=10)ˆà òÀæ òÀæ ˆà 666 668 size_window.resizable(False, False)ˆà 667 669 size_window.protocol("WM_DELETE_WINDOW", handlers.hide_size_window)ˆà 668 ˆà Label(size_window, text="Current size of window:").pack(side="top", fill="x")ˆàˆà 670 Label(size_window, text="Current window size:").pack(side="top", fill="x")ˆà 669 671 size_label = Label(size_window)ˆà 670 672 size_label.pack(side="top", fill="x")ˆà òÀæ òÀæ ˆà 766 768 accelerator="Ctrl+C")ˆà 767 769 menu_action.bind_all("<Control-c>", handlers.clean_field)ˆà 768 ˆà menu_action.add_command(label="Fill randomly", command=handlers.fill_randomly,ˆà ˆà 770 menu_action.add_command(label="Fill randomly",ˆà ˆà 771 command=handlers.fill_randomly,ˆà 769 772 accelerator="Ctrl+R")ˆà 770 773 menu_action.bind_all("<Control-r>", handlers.fill_randomly)ˆà 771 774 menu_action.add_separator()ˆà 772 ˆà menu_action.add_command(label="Change size",command=handlers.show_size_window,ˆà ˆà 775 menu_action.add_command(label="Change size",ˆà ˆà 776 command=handlers.show_size_window,ˆà 773 777 accelerator="Ctrl+D")ˆà 774 778 menu_action.bind_all("<Control-d>", handlers.show_size_window)ˆà
Note: See TracChangeset
for help on using the changeset viewer.
