gitso

gitso Commit Details


Date:2008-09-03 20:43:50 (16 years 3 months ago)
Author:gerberad
Branch:master
Commit:71bb1c8abc8d8925205b86c8b03cc630d03c953b
Parents: 9d5330e08d776e154c56c82e9ff95045cea54e09
Message:Updated Background colors (windows), About Window (windows), hosts files (windows), About Gitso Menu (windows).

Changes:

File differences

gitso/trunk/Gitso.py
4545
4646
4747
48
49
50
48
49
50
5151
5252
5353
......
8181
8282
8383
84
8584
8685
8786
......
111110
112111
113112
114
113
115114
116115
117116
......
119118
120119
121120
122
121
123122
124123
125124
......
236235
237236
238237
239
240238
241239
242240
......
356354
357355
358356
357
358
359
359360
360
361
361362
362363
363
364
364365
365366
366367
367
368
368
369
369370
370371
371372
372373
373
374
374
375
375376
376377
377378
378379
379
380
380381
381382
382383
......
402403
403404
404405
405
406
407
406
408407
409408
410409
icon = wx.Icon(os.path.join(sys.path[0], '..', 'share', 'gitso', 'icon.ico'), wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)
elif sys.platform == 'win32':
print "set icon"
#icon = wx.Icon(os.path.join(sys.path[0], '..', 'share', 'gitso', 'icon.ico'), wx.BITMAP_TYPE_ICO)
#self.SetIcon(icon)
self.SetBackgroundColour(wx.Colour(236,233,216))
icon = wx.Icon('icon.ico', wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)
if sys.platform.find('linux') != -1:
xval1 = 155
if sys.platform == "darwin":
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], 'hosts.txt'))
elif sys.platform == "win32":
print "set Hosts"
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], 'hosts.txt'))
else:
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], '..', 'share', 'gitso', 'hosts.txt'))
wx.EVT_MENU(self, wx.ID_EXIT, self.OnCloseWindow)
helpMenu = wx.Menu()
helpMenu.Append(wx.ID_ABOUT, "&About\tCtrl+A", "About Gitso")
helpMenu.Append(wx.ID_ABOUT, "&About", "About Gitso")
wx.EVT_MENU(self, wx.ID_ABOUT, self.ShowAbout)
wx.EVT_MENU(self, 13, self.clearHistory)
menuBar.Append(fileMenu, "&File")
menuBar.Append(editMenu, "&Edit")
if sys.platform.find('linux') != -1:
if sys.platform.find('linux') != -1 or sys.platform == 'win32':
menuBar.Append(helpMenu, "&Help")
if sys.platform == "darwin":
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], 'hosts.txt'))
elif sys.platform == "win32":
print "set Hosts"
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], 'hosts.txt'))
else:
self.sampleList = self.getHosts(self.sampleList, os.path.join(sys.path[0], '..', 'share', 'gitso', 'hosts.txt'))
license = open(os.path.join(sys.path[0], '..', 'share', 'doc', 'gitso', 'copyright'), 'r')
else:
license = open('copyright', 'r')
if sys.platform == 'win32':
self.SetBackgroundColour(wx.Colour(236,233,216))
self.copyright = wx.TextCtrl(self, -1, license.read(), pos=wx.Point(0, 180), size=wx.Size(525, 160), style=wx.TE_MULTILINE)
self.copyright = wx.TextCtrl(self, -1, license.read(), pos=wx.Point(0, 180), size=wx.Size(525, 160), style=wx.TE_MULTILINE | wx.ST_NO_AUTORESIZE)
self.copyright.SetEditable(False)
self.text1 = wx.StaticText(self, wx.ID_ANY, 'Gitso', pos=wx.Point(0, 20), size=wx.Size(525, -1), style=wx.ALIGN_CENTER_HORIZONTAL)
self.text1 = wx.StaticText(self, wx.ID_ANY, 'Gitso', pos=wx.Point(0, 13), size=wx.Size(525, 35), style=wx.ALIGN_CENTER_HORIZONTAL | wx.ST_NO_AUTORESIZE)
font1 = wx.Font(24, wx.NORMAL, wx.NORMAL, wx.BOLD)
self.text1.SetFont(font1)
self.text2 = wx.StaticText(self, -1, "Gitso is to Support Others", pos=wx.Point(0, 50), size=wx.Size(525, -1), style=wx.ALIGN_CENTER_HORIZONTAL)
self.text3 = wx.StaticText(self, -1, "Version 0.5", pos=wx.Point(0, 72), size=wx.Size(525, -1), style=wx.ALIGN_CENTER_HORIZONTAL)
self.text2 = wx.StaticText(self, -1, "Gitso is to Support Others", pos=wx.Point(0, 48), size=wx.Size(525, 27), style=wx.ALIGN_CENTER_HORIZONTAL | wx.ST_NO_AUTORESIZE)
self.text3 = wx.StaticText(self, -1, "Version 0.5", pos=wx.Point(0, 72), size=wx.Size(525, 27), style=wx.ALIGN_CENTER_HORIZONTAL | wx.ST_NO_AUTORESIZE)
font2 = wx.Font(16, wx.NORMAL, wx.NORMAL, wx.NORMAL)
self.text2.SetFont(font2)
self.text3.SetFont(font2)
self.text4 = wx.StaticText(self, -1, "Copyright 2008", pos=wx.Point(0, 105), size=wx.Size(525, -1), style=wx.ALIGN_CENTER_HORIZONTAL)
self.text5 = wx.StaticText(self, -1, "Aaron Gerber and Derek Buranen", pos=wx.Point(0, 125), size=wx.Size(525, -1), style=wx.ALIGN_CENTER_HORIZONTAL)
self.text4 = wx.StaticText(self, -1, "Copyright 2008", pos=wx.Point(0, 102), size=wx.Size(525, 27), style=wx.ALIGN_CENTER_HORIZONTAL | wx.ST_NO_AUTORESIZE)
self.text5 = wx.StaticText(self, -1, "Aaron Gerber and Derek Buranen", pos=wx.Point(0, 125), size=wx.Size(525, 27), style=wx.ALIGN_CENTER_HORIZONTAL | wx.ST_NO_AUTORESIZE)
font4 = wx.Font(14, wx.NORMAL, wx.NORMAL, wx.NORMAL)
self.text4.SetFont(font4)
self.text5.SetFont(font4)
self.url = wx.HyperlinkCtrl(self, -1, "code.google.com/p/gitso", "http://code.google.com/p/gitso", wx.Point(186, 150))
self.url = wx.HyperlinkCtrl(self, -1, "code.google.com/p/gitso", "http://code.google.com/p/gitso", wx.Point(189, 150))
self.ok = wx.Button(self, wx.ID_OK, "OK", wx.Point(425, 350))
self.SetDefaultItem(self.ok)
os.makedirs(prefFile, 0700)
prefFile = os.path.join(prefFile, "hosts")
elif sys.platform == "win32":
print "set Hosts"
# I don't know where the best place is for this.
prefFile = os.path.join(os.path.expanduser("~"), ".gitso-hosts")
prefFile = os.path.join(os.path.expanduser("~"), "Local Settings", "Application Data", ".gitso-hosts")
else:
prefFile = os.path.join(os.path.expanduser("~"), ".gitso-hosts")
gitso/trunk/hosts.txt
1

Archive Download the corresponding diff file

Branches

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