1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Updated comments in misc.py

Updated some GUI elements
This commit is contained in:
compwiz18
2008-01-15 02:11:36 +00:00
parent 50ffd944f5
commit 03b7ead08f
4 changed files with 49 additions and 30 deletions

19
gui.py
View File

@@ -332,7 +332,8 @@ class PrettyNetworkEntry(gtk.HBox):
self.expander.higherLevel = self # Do this so that the expander can access the stuff inside me
self.tempVBox = gtk.VBox(False,1)
self.tempVBox.show()
self.connectButton = LinkButton(language["connect"])
self.connectButton = gtk.Button(stock=gtk.STOCK_CONNECT)
#self.connectButton = LinkButton(language["connect"])
self.connectButton.show()
self.tempVBox.pack_start(self.expander,fill=False,expand=False)
self.tempVBox.pack_start(self.connectButton,fill=False,expand=False)
@@ -434,7 +435,21 @@ class NetworkEntry(gtk.Expander):
self.txtDNS1 = LabelEntry(language['dns'] + ' ' + language['1'])
self.txtDNS2 = LabelEntry(language['dns'] + ' ' + language['2'])
self.txtDNS3 = LabelEntry(language['dns'] + ' ' + language['3'])
self.scriptButton = LinkButton(language['scripts'])
#self.scriptButton = LinkButton(language['scripts'])
image_hbox = gtk.HBox()
self.scriptButton = gtk.Button() #language['scripts']) #, stock=gtk.STOCK_EXECUTE)
label = gtk.Label(language['scripts'])
image = gtk.Image()
image.set_from_icon_name ('execute', 4)
image.set_padding(4, 0)
self.scriptButton.set_alignment(.5 , .5)
image.set_alignment(1, .5)
label.set_alignment(0, .5)
image_hbox.pack_start(image,fill=True, expand=True)
image_hbox.pack_start(label,fill=True, expand=True)
self.scriptButton.add(image_hbox)
#self.scriptButton.child.set_alignment(.5, .5)
#self.scriptButton.set_use_stock(True)
self.checkboxStaticIP = gtk.CheckButton(language['use_static_ip'])
self.checkboxStaticDNS = gtk.CheckButton(language['use_static_dns'])
self.checkboxGlobalDNS = gtk.CheckButton(language['use_global_dns'])