Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://kodomo.fbb.msu.ru/trac/snake/changeset/23%3A6189d0cecd2d
Äàòà èçìåíåíèÿ: Unknown
Äàòà èíäåêñèðîâàíèÿ: Sun Apr 10 09:25:39 2016
Êîäèðîâêà: IBM-866
Changeset 23:6189d0cecd2d òÀÓ Python Battle

Changeset 23:6189d0cecd2d


Ignore:
Timestamp:
12/18/10 19:49:28 (5 years ago)
Author:
Alex Martynov
Branch:
default
Message:

deleted UI.load_number()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r20 r23 ˆà
    11import Tkinter as tkˆà
    ˆà2import tkFileDialog as tkfdˆà
    23import engineˆà
    34ˆà
    òÀæ òÀæ ˆà
    1718        returnˆà
    1819    def buttons_pack(self, frame):ˆà
    19ˆà        load_1 = tk.Button(frame, text="Load", command=self.load_1())ˆà
    ˆà20        load_1 = tk.Button(frame, text="Load", command=self.load(1))ˆà
    2021        load_1.pack(side="top", fill="both", expand = "yes")ˆà
    21ˆà        load_2 = tk.Button(frame, text="Load", command=self.load_2())ˆà
    ˆà22        load_2 = tk.Button(frame, text="Load", command=self.load(2))ˆà
    2223        load_2.pack(side="top", fill="both", expand = "yes")ˆà
    2324        run_b = tk.Button(frame, text="Run", command=self.run())ˆà
    2425        run_b.pack(side="top", fill="both", expand = "yes")ˆà
    25ˆà        load_3 = tk.Button(frame, text="Load", command=self.load_3())ˆà
    ˆà26        load_3 = tk.Button(frame, text="Load", command=self.load(3))ˆà
    2627        load_3.pack(side="bottom", fill="both", expand = "yes")ˆà
    27ˆà        load_4 = tk.Button(frame, text="Load", command=self.load_4())ˆà
    ˆà28        load_4 = tk.Button(frame, text="Load", command=self.load(4))ˆà
    2829        load_4.pack(side="bottom", fill="both", expand = "yes")ˆà
    2930        step_b = tk.Button(frame, text="Step", command=self.step())ˆà
    3031        step_b.pack(side="bottom", fill="both", expand = "yes")ˆà
    3132        returnˆà
    32ˆà    def load (self):ˆà
    ˆà33    def load (self, snake_number):ˆà
    ˆà34        file_name = tkfd.askopenfilename(title="Open file")ˆà
    ˆà35        snake_file = open(file_name,'r')ˆà
    ˆà36        ˆà
    3337        passˆà
    34ˆà    def load_1 (self):ˆà
    35ˆà        passˆà
    36ˆà    def load_2 (self):ˆà
    37ˆà        passˆà
    38ˆà    def load_3 (self):ˆà
    39ˆà        passˆà
    40ˆà    def load_4 (self):ˆà
    41ˆà        passˆà
    ˆà38ˆà
    4239    def run (self):ˆà
    ˆà40ˆà
    4341        passˆà
    4442    def step (self):ˆà
    ˆà43ˆà
    4544        passˆà
    4645        ˆà
Note: See TracChangeset for help on using the changeset viewer.