[chirp_devel] [PATCH] Add buttons to Import/Export dialog for +10, +100, -10, and -100 adjustments.
Tom Hayward
Wed Mar 14 12:59:28 PDT 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1331755024 21600
# Node ID 71af287822ea4c94b608403026ee69d19bb79a37
# Parent 8d5c5ad69def733a4a6d7923c9588a47bae725ba
Add buttons to Import/Export dialog for +10, +100, -10, and -100 adjustments.
diff -r 8d5c5ad69def -r 71af287822ea chirpui/importdialog.py
--- a/chirpui/importdialog.py Tue Mar 13 18:45:51 2012 -0700
+++ b/chirpui/importdialog.py Wed Mar 14 13:57:04 2012 -0600
@@ -401,6 +401,18 @@
def make_adjust(self):
hbox = gtk.HBox(True, 2)
+ incr = gtk.Button("+100")
+ incr.connect("clicked", self.__incrnew, 100)
+ incr.set_size_request(50, 25)
+ incr.show()
+ hbox.pack_start(incr, 0, 0, 0)
+
+ incr = gtk.Button("+10")
+ incr.connect("clicked", self.__incrnew, 10)
+ incr.set_size_request(50, 25)
+ incr.show()
+ hbox.pack_start(incr, 0, 0, 0)
+
incr = gtk.Button("+1")
incr.connect("clicked", self.__incrnew, 1)
incr.set_size_request(50, 25)
@@ -413,6 +425,18 @@
decr.show()
hbox.pack_start(decr, 0, 0, 0)
+ decr = gtk.Button("-10")
+ decr.connect("clicked", self.__incrnew, -10)
+ decr.set_size_request(50, 25)
+ decr.show()
+ hbox.pack_start(decr, 0, 0, 0)
+
+ decr = gtk.Button("-100")
+ decr.connect("clicked", self.__incrnew, -100)
+ decr.set_size_request(50, 25)
+ decr.show()
+ hbox.pack_start(decr, 0, 0, 0)
+
auto = gtk.Button(_("Auto"))
auto.connect("clicked", self.__autonew)
auto.set_size_request(50, 25)
@@ -449,7 +473,7 @@
return frame
def make_controls(self):
- hbox = gtk.HBox(True, 2)
+ hbox = gtk.HBox(False, 2)
hbox.pack_start(self.make_select(), 0, 0, 0)
hbox.pack_start(self.make_adjust(), 0, 0, 0)
More information about the chirp_devel
mailing list