diff -r 0688db995ddf -r 4a8400732001 Dialogs.py --- a/Dialogs.py Tue Jul 17 12:25:50 2007 +0200 +++ b/Dialogs.py Wed Jul 18 11:51:30 2007 +0200 @@ -110,6 +110,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(274, 104), size=wx.Size(300, 200), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -130,7 +131,6 @@ if root.IsOk(): pydata = self.TypeTree.GetPyData(root) if inputs and "inputs" in pydata: - print inputs, pydata["inputs"] same_inputs = pydata["inputs"] == inputs else: same_inputs = True @@ -340,6 +340,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(24, 170), size=wx.Size(350, 150), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -551,6 +552,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(174, 48), size=wx.Size(150, 100), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -698,6 +700,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(174, 48), size=wx.Size(150, 150), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -869,6 +872,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(174, 48), size=wx.Size(150, 150), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -1135,6 +1139,7 @@ name='Preview', parent=self.MainPanel, pos=wx.Point(250, 48), size=wx.Size(225, 150), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER) self.Preview.SetBackgroundColour(wxColour(255,255,255)) + setattr(self.Preview, "GetDrawingMode", lambda:FREEDRAWING_MODE) self._init_sizers() @@ -1522,7 +1527,6 @@ def GetValues(self): values = [] for data in self.Table.GetData(): - print data action = {"qualifier" : data["Qualifier"], "value" : data["Value"]} if data["Type"] in ["Action", "Variable"]: action["type"] = "reference" @@ -1590,3 +1594,5 @@ def SetStepNames(self, step_names): self.StepNames = [step_name.upper() for step_name in step_names] + def GetValue(self): + return self.GetSizer().GetItem(1).GetWindow().GetValue()