Diff of /trunk/tubetutor/tubetutor.py [r9] .. [r10]  Maximize  Restore

Switch to unified view

a/trunk/tubetutor/tubetutor.py b/trunk/tubetutor/tubetutor.py
...
...
110
        base = filename.split(".")[0]
110
        base = filename.split(".")[0]
111
        self.lastid = int(base)
111
        self.lastid = int(base)
112
112
113
    def get_title(self):
113
    def get_title(self):
114
        title=self.textfields["title"].get("1.0", tkinter.END)
114
        title=self.textfields["title"].get("1.0", tkinter.END)
115
        return title
115
        return title.replace("\n", "")
116
116
117
117
118
    def refresh_files(self):
118
    def refresh_files(self):
119
        self.files = []
119
        self.files = []
120
        for root, dirs, files in os.walk(os.path.join(self.path, "working")):
120
        for root, dirs, files in os.walk(os.path.join(self.path, "working")):
...
...
124
        self.files.sort()
124
        self.files.sort()
125
125
126
    # Output the main window
126
    # Output the main window
127
    def refresh_display(self):
127
    def refresh_display(self):
128
        # remove all widgets
128
        # remove all widgets
129
        for w in self.buttons:
129
        try:
130
            for w in self.buttons:
130
            self.buttons[w].pack_forget()
131
                self.buttons[w].pack_forget()
131
        self.buttons = {}
132
            self.buttons = {}
133
        except:
134
            pass
132
135
133
        for w in self.frames:
136
        for w in self.frames:
134
            w.pack_forget()
137
            w.pack_forget()
135
        self.frames = []
138
        self.frames = []
136
139