[X2Go-Commits] [pyhoca-gui] 01/02: typo fix, and some whitespace fixes
git-admin at x2go.org
git-admin at x2go.org
Sat Apr 5 01:19:03 CEST 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-gui.
commit bd01f679afb6d3bfc5ac7b1c0f36fe586cba291d
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Apr 5 01:18:02 2014 +0200
typo fix, and some whitespace fixes
---
pyhoca/wxgui/messages.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/pyhoca/wxgui/messages.py b/pyhoca/wxgui/messages.py
index 71656eb..18d1568 100644
--- a/pyhoca/wxgui/messages.py
+++ b/pyhoca/wxgui/messages.py
@@ -35,7 +35,7 @@ class PyHoca_MessageWindow(wx.Dialog):
A simple message window for L{PyHocaGUI}.
"""
- def __init__(self, _PyHocaGUI, parent=None, title=None, shortmsg=None, msg=None, icon=None, buttontype='ok',
+ def __init__(self, _PyHocaGUI, parent=None, title=None, shortmsg=None, msg=None, icon=None, buttontype='ok',
profile_name=None,
session_name=None):
"""\
@@ -66,7 +66,7 @@ class PyHoca_MessageWindow(wx.Dialog):
try: wx.EndBusyCursor()
except: pass
- self._pyhoca_messages = {
+ self._pyhoca_messages = {
'REALLY_DELETE_PROFILE': _(u'Are you really sure you want to\ndelete the session profile ,,%s\'\'?') % profile_name,
'ALREADY_RUNNING': _(u'PyHoca-GUI is already running for user ,,%s\'\'!\n\nOnly one instance of PyHoca-GUI can be started per\nuser. The PyHoca-GUI icon can be found in your desktops\'s\nnotification area/systray.') % _CURRENT_LOCAL_USER
}
@@ -95,7 +95,7 @@ class PyHoca_MessageWindow(wx.Dialog):
if icon:
path_to_icon = os.path.normpath('%s/PyHoca/64x64/%s.png' % (_icons_location, icon))
self.icon = wx.StaticBitmap(self, wx.ID_ANY, wx.Bitmap(path_to_icon, wx.BITMAP_TYPE_ANY))
- self.message = wx.StaticText(self, wx.ID_ANY, self.show_message, size=(-1, -1), style=wx.ALIGN_LEFT)
+ self.message = wx.StaticText(self, wx.ID_ANY, self.show_message, size=(-1, -1), style=wx.ALIGN_LEFT)
btnSizer = wx.BoxSizer(wx.HORIZONTAL)
msgSizer = wx.BoxSizer(wx.HORIZONTAL)
@@ -108,8 +108,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, flag=wx.ALL, border=5)
- btnSizer.Add(self.noBtn, flag=wx.ALL, border=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()
@@ -122,13 +122,13 @@ 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, flag=wx.ALL, border=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, flag=wx.ALL, borde=5)
+ btnSizer.Add(self.cancelBtn, flag=wx.ALL, border=5)
if buttontype in ('ok', 'okcancel'):
self.okBtn.SetDefault()
@@ -144,7 +144,7 @@ class PyHoca_MessageWindow(wx.Dialog):
mainSizer.Add(msgSizer, flag=wx.ALL, border=10)
mainSizer.Add(btnSizer, flag=wx.ALL|wx.ALIGN_RIGHT, border=5)
- self.SetSizerAndFit(mainSizer)
+ self.SetSizerAndFit(mainSizer)
self.Layout()
maxX, maxY = wx.GetDisplaySize()
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list