windwiny avatar windwiny committed efde9f3

vis log

Comments (0)

Files changed (2)

         self.stcSyncLog = wx.stc.StyledTextCtrl(id=wxID_GRSYNCDLGSTCSYNCLOG,
               name=u'stcSyncLog', parent=self, pos=wx.Point(0, 112),
               size=wx.Size(703, 419), style=0)
-        self.stcSyncLog.SetFont(wx.Font(9, wx.SWISS, wx.NORMAL, wx.NORMAL,
-              False, u'\u65b0\u5b8b\u4f53'))
 
         self.staticText1 = wx.StaticText(id=wxID_GRSYNCDLGSTATICTEXT1,
               label=u'SRC', name='staticText1', parent=self.panel1,
             data = ''.join(self.dataout[:i])
             del self.dataout[:i]
             self.stcSyncLog.AppendText(data.decode('gbk', 'replace'))
-            self.stcSyncLog.GotoLine(self.stcSyncLog.GetLineCount())
+            if self.stcSyncLog.GetLineVisible(self.stcSyncLog.GetLineCount()):
+                self.stcSyncLog.GotoLine(self.stcSyncLog.GetLineCount())
         i = len(self.dataerr)
         if i != 0:
             data = ''.join(self.dataerr[:i])
             del self.dataerr[:i]
             self.stcSyncLog.AppendText(data.decode('gbk', 'replace'))
-            self.stcSyncLog.GotoLine(self.stcSyncLog.GetLineCount())
+            if self.stcSyncLog.GetLineVisible(self.stcSyncLog.GetLineCount()):
+                self.stcSyncLog.GotoLine(self.stcSyncLog.GetLineCount())
 
     def getcmd(self):
         cmds = ['rsync']
             di = os.path.dirname(di)
         if os.path.isdir(di):
             os.chdir(di)
+
+        ff = wx.Font(9, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Courier New')
+        self.txtSRC.SetFont(ff)
+        self.txtDST.SetFont(ff)
         self.btnCompare.Disable()
         self.btnRsync.Disable()
         G.initfromfile()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.