gitso

gitso Commit Details


Date:2008-07-20 14:07:58 (16 years 5 months ago)
Author:gerberad
Branch:master
Commit:d45217a2e6abc93eeaf95b1a48b692548be45a34
Parents: 11e1ebb6af3d426bea21d2c73a1cc552ce89ecb1
Message:Preliminary Windows Support. Fixed Title bars.

Changes:

File differences

gitso/trunk/Gitso.py
3333
3434
3535
36
3637
38
3739
3840
39
41
4042
4143
4244
4345
4446
4547
46
48
4749
4850
4951
......
165167
166168
167169
168
170
169171
170172
171173
......
190192
191193
192194
193
195
194196
195197
196198
"""
if sys.platform.find('linux') != -1:
width = 165
height = 350
else:
height = 350
width = 145
wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(350,width), style=wx.CLOSE_BOX | wx.MINIMIZE_BOX)
wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(height,width), style=wx.DEFAULT_FRAME_STYLE & ~ (wx.RESIZE_BORDER | wx.RESIZE_BOX | wx.MAXIMIZE_BOX))
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
if sys.platform != 'darwin':
print 'set icon'
#icon = wx.Icon("icon.ico", wx.BITMAP_TYPE_ICO)
#self.SetIcon(icon)
if sys.platform.find('linux') != -1:
xval1 = 155
xval2 = 250
elif sys.platform.find('linux') != -1:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc', '-connect' , '%s' % host)
elif sys.platform == 'win32':
print 'win32 not implemented yet.'
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\WinVNC.exe', 'c:\\windows\\WinVNC.exe', '-connect', '%s' % host)
else:
print 'platform not detected'
else:
elif sys.platform.find('linux') != -1:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')
elif sys.platform == 'win32':
print 'win32 not implemented yet.'
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\vncviewer.exe', 'c:\\windows\\vncviewer.exe', '-listen' )
else:
print 'platform not detected'

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07906s using 13 queries.