Fix bug in atty function of LogPseudoFile
authorLaurent Bessard
Wed, 26 Jun 2013 16:54:38 +0200
changeset 1269 e8e153a7c3bf
parent 1268 f049c901c85b
child 1270 aa9bc3e6181d
Fix bug in atty function of LogPseudoFile
Beremiz.py
--- a/Beremiz.py	Wed Jun 26 16:53:36 2013 +0200
+++ b/Beremiz.py	Wed Jun 26 16:54:38 2013 +0200
@@ -298,7 +298,7 @@
         self.output.SetReadOnly(True)
     
     def isatty(self):
-        return false
+        return False
 
 [ID_BEREMIZ, ID_BEREMIZMAINSPLITTER, 
  ID_BEREMIZPLCCONFIG, ID_BEREMIZLOGCONSOLE, 
@@ -1056,7 +1056,6 @@
             self.CTR._OpenView(onlyopened=True)
         else:
             IDEFrame.ProjectTreeItemSelect(self, select_item)
-            
     
     def SelectProjectTreeItem(self, tagname):
         if self.ProjectTree is not None:
@@ -1067,7 +1066,7 @@
                     if tagname == "Project":
                         self.SelectedItem = root
                         self.ProjectTree.SelectItem(root)
-                        wx.CallAfter(self.ResetSelectedItem)
+                        self.ResetSelectedItem()
                     else:
                         return self.RecursiveProjectTreeItemSelection(root, 
                               [(word, ITEM_CONFNODE) for word in tagname.split(".")])