Lines Matching refs:tk

36 import tkinter as tk  namespace
214 self.dirVar = tk.StringVar()
218 self.testPatternVar = tk.StringVar()
225 tk.Label(master, text="Top Level Directory").grid(row=0)
226 self.e1 = tk.Entry(master, textvariable=self.dirVar)
228 tk.Button(master, text="...",
231 tk.Label(master, text="Test File Pattern").grid(row=1)
232 self.e2 = tk.Entry(master, textvariable = self.testPatternVar)
254 self.statusVar = tk.StringVar()
258 self.runCountVar = tk.IntVar()
259 self.failCountVar = tk.IntVar()
260 self.errorCountVar = tk.IntVar()
261 self.skipCountVar = tk.IntVar()
262 self.expectFailCountVar = tk.IntVar()
263 self.remainingCountVar = tk.IntVar()
265 self.top = tk.Frame()
266 self.top.pack(fill=tk.BOTH, expand=1)
284 self.errorListbox.delete(0, tk.END)
287 self.stopGoButton['state'] = tk.NORMAL
296 statusFrame = tk.Frame(self.top, relief=tk.SUNKEN, borderwidth=2)
297 statusFrame.pack(anchor=tk.SW, fill=tk.X, side=tk.BOTTOM)
298 tk.Label(statusFrame, width=1, textvariable=self.statusVar).pack(side=tk.TOP, fill=tk.X)
301 leftFrame = tk.Frame(self.top, borderwidth=3)
302 leftFrame.pack(fill=tk.BOTH, side=tk.LEFT, anchor=tk.NW, expand=1)
303 suiteNameFrame = tk.Frame(leftFrame, borderwidth=3)
304 suiteNameFrame.pack(fill=tk.X)
307 progressFrame = tk.Frame(leftFrame, relief=tk.GROOVE, borderwidth=2)
308 progressFrame.pack(fill=tk.X, expand=0, anchor=tk.NW)
309 tk.Label(progressFrame, text="Progress:").pack(anchor=tk.W)
310 self.progressBar = ProgressBar(progressFrame, relief=tk.SUNKEN,
312 self.progressBar.pack(fill=tk.X, expand=1)
316 buttonFrame = tk.Frame(self.top, borderwidth=3)
317 buttonFrame.pack(side=tk.LEFT, anchor=tk.NW, fill=tk.Y)
319 tk.Button(buttonFrame, text="Discover Tests",
320 command=self.discoverClicked).pack(fill=tk.X)
323 self.stopGoButton = tk.Button(buttonFrame, text="Start",
324 command=self.runClicked, state=tk.DISABLED)
325 self.stopGoButton.pack(fill=tk.X)
327 tk.Button(buttonFrame, text="Close",
328 command=self.top.quit).pack(side=tk.BOTTOM, fill=tk.X)
329 tk.Button(buttonFrame, text="Settings",
330 command=self.settingsClicked).pack(side=tk.BOTTOM, fill=tk.X)
340 tk.Label(progressFrame, text=label).pack(side=tk.LEFT)
341 tk.Label(progressFrame, textvariable=var,
342 foreground="blue").pack(side=tk.LEFT, fill=tk.X,
343 expand=1, anchor=tk.W)
346 tk.Label(leftFrame, text="Failures and errors:").pack(anchor=tk.W)
347 listFrame = tk.Frame(leftFrame, relief=tk.SUNKEN, borderwidth=2)
348 listFrame.pack(fill=tk.BOTH, anchor=tk.NW, expand=1)
349 self.errorListbox = tk.Listbox(listFrame, foreground='red',
350 selectmode=tk.SINGLE,
352 self.errorListbox.pack(side=tk.LEFT, fill=tk.BOTH, expand=1,
353 anchor=tk.NW)
354 listScroll = tk.Scrollbar(listFrame, command=self.errorListbox.yview)
355 listScroll.pack(side=tk.LEFT, fill=tk.Y, anchor=tk.N)
374 self.stopGoButton.config(state=tk.DISABLED)
379 self.stopGoButton.config(state=tk.DISABLED)
389 self.errorListbox.insert(tk.END, "Failure: %s" % test)
394 self.errorListbox.insert(tk.END, "Error: %s" % test)
418 window = tk.Toplevel(self.root)
422 tk.Label(window, text=str(test),
423 foreground="red", justify=tk.LEFT).pack(anchor=tk.W)
426 tk.Label(window, text=tracebackText, justify=tk.LEFT).pack()
427 tk.Button(window, text="Close",
428 command=window.quit).pack(side=tk.BOTTOM)
434 class ProgressBar(tk.Frame):
439 tk.Frame.__init__(self, *args, **kwargs)
440 self.canvas = tk.Canvas(self, height='20', width='60',
442 self.canvas.pack(fill=tk.X, expand=1)
463 anchor=tk.CENTER,
467 root = tk.Tk()