Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
unittestgui.DiscoverSettingsDialog Class Reference

List of all members.

Public Member Functions

def __init__
def body
def selectDirClicked
def apply

Public Attributes

 top_level_dir
 dirVar
 test_file_glob_pattern
 testPatternVar
 e1
 e2

Detailed Description

Dialog box for prompting test discovery settings

Definition at line 208 of file unittestgui.py.


Constructor & Destructor Documentation

def unittestgui.DiscoverSettingsDialog.__init__ (   self,
  master,
  top_level_dir,
  test_file_glob_pattern,
  args,
  kwargs 
)

Definition at line 213 of file unittestgui.py.

00213 
00214     def __init__(self, master, top_level_dir, test_file_glob_pattern, *args, **kwargs):
00215         self.top_level_dir = top_level_dir
00216         self.dirVar = tk.StringVar()
00217         self.dirVar.set(top_level_dir)
00218 
00219         self.test_file_glob_pattern = test_file_glob_pattern
00220         self.testPatternVar = tk.StringVar()
00221         self.testPatternVar.set(test_file_glob_pattern)
00222 
00223         simpledialog.Dialog.__init__(self, master, title="Discover Settings",
00224                                      *args, **kwargs)


Member Function Documentation

Definition at line 242 of file unittestgui.py.

00242 
00243     def apply(self):
00244         self.top_level_dir = self.dirVar.get()
00245         self.test_file_glob_pattern = self.testPatternVar.get()

def unittestgui.DiscoverSettingsDialog.body (   self,
  master 
)

Definition at line 225 of file unittestgui.py.

00225 
00226     def body(self, master):
00227         tk.Label(master, text="Top Level Directory").grid(row=0)
00228         self.e1 = tk.Entry(master, textvariable=self.dirVar)
00229         self.e1.grid(row = 0, column=1)
00230         tk.Button(master, text="...",
00231                   command=lambda: self.selectDirClicked(master)).grid(row=0,column=3)
00232 
00233         tk.Label(master, text="Test File Pattern").grid(row=1)
00234         self.e2 = tk.Entry(master, textvariable = self.testPatternVar)
00235         self.e2.grid(row = 1, column=1)
00236         return None

Definition at line 237 of file unittestgui.py.

00237 
00238     def selectDirClicked(self, master):
00239         dir_path = filedialog.askdirectory(parent=master)
00240         if dir_path:
00241             self.dirVar.set(dir_path)


Member Data Documentation

Definition at line 215 of file unittestgui.py.

Definition at line 227 of file unittestgui.py.

Definition at line 233 of file unittestgui.py.

Definition at line 218 of file unittestgui.py.

Definition at line 219 of file unittestgui.py.

Definition at line 214 of file unittestgui.py.


The documentation for this class was generated from the following file: