[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 0.0.28.0-22-g52f9b08

X2Go dev team git-admin at x2go.org
Tue Aug 27 13:21:13 CEST 2013


The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
       via  52f9b08edfcacafb1e78a8fca98e0b8eec17d553 (commit)
      from  3910129f273fdbd18c5c9bcbf99a610d7e5770f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 pyhoca/wxgui/messages.py |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

The diff of changes is:
diff --git a/pyhoca/wxgui/messages.py b/pyhoca/wxgui/messages.py
index a1dd208..6336102 100644
--- a/pyhoca/wxgui/messages.py
+++ b/pyhoca/wxgui/messages.py
@@ -60,8 +60,8 @@ class PyHoca_MessageWindow(wx.Dialog):
             self.Bind(wx.EVT_BUTTON, self.OnTrue, self.yesBtn)
             self.Bind(wx.EVT_BUTTON, self.OnFalse, self.noBtn)
 
-            btnSizer.Add(self.yesBtn, 0, wx.ALL, 5) 
-            btnSizer.Add(self.noBtn, 0, wx.ALL, 5) 
+            btnSizer.Add(self.yesBtn, flag=wx.ALL, border=5) 
+            btnSizer.Add(self.noBtn, flag=wx.ALL, border=5) 
 
             if buttontype == 'yesno':
                 self.yesBtn.SetDefault()
@@ -72,19 +72,21 @@ class PyHoca_MessageWindow(wx.Dialog):
 
             self.okBtn = wx.Button(self, wx.ID_ANY, _(u'Ok'),)
             self.Bind(wx.EVT_BUTTON, self.OnTrue, self.okBtn)
-            btnSizer.Add(self.okBtn, 0, wx.ALL, 5) 
+            btnSizer.Add(self.okBtn, flag=wx.ALL, border=5) 
 
         if buttontype in ('okcancel', 'cancelok'):
 
             self.cancelBtn = wx.Button(self, wx.ID_ANY, _(u'Cancel'))
             self.Bind(wx.EVT_BUTTON, self.OnFalse, self.cancelBtn)
-            btnSizer.Add(self.cancelBtn, 0, wx.ALL, 5) 
+            btnSizer.Add(self.cancelBtn, flag=wx.ALL, borde=5) 
 
         if buttontype in ('ok', 'okcancel'):
             self.okBtn.SetDefault()
+            self.okBtn.SetFocus()
 
         if buttontype == 'cancelok':
             self.cancelBtn.SetDefault()
+            self.cancelBtn.SetFocus()
 
         mainSizer.Add(self.message, flag=wx.ALL, border=10) 
         mainSizer.Add(btnSizer, flag=wx.ALL|wx.ALIGN_RIGHT, border=5)


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list