summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-07 08:30:27 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-07 08:30:27 +0000
commitd9722affc6b453c442bbb6c52f4fae073de8232d (patch)
tree624effea5635fb55bcb88de4fe300a082611d048
parent89716cd5074959f90ec5eb26c0783324e68f028f (diff)
rmdPrefsWidget.py: how does directories-only selection work in pyGtk?
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@465 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r--gtk-recordmydesktop/src/rmdPrefsWidget.py33
1 files changed, 32 insertions, 1 deletions
diff --git a/gtk-recordmydesktop/src/rmdPrefsWidget.py b/gtk-recordmydesktop/src/rmdPrefsWidget.py
index 76d2faf..479e15a 100644
--- a/gtk-recordmydesktop/src/rmdPrefsWidget.py
+++ b/gtk-recordmydesktop/src/rmdPrefsWidget.py
@@ -87,6 +87,22 @@ class prefsWidget(object):
for i in iters_t:
self.values[23].append(self.jack_lsp_listview.get_model().get_value(i,0))
+ def __fileSelQuit__(self,Event=None):
+ self.fileSel.destroy()
+
+ def __fileSelOk__(self,Event=None):
+ new_val=self.fileSel.get_filename()
+ self.workdirEntry.set_text(new_val)
+ self.fileSel.destroy()
+
+ def __fileSelect__(self,Event=None):
+ self.fileSel = gtk.FileSelection(title=None)
+ self.fileSel.ok_button.connect("clicked", self.__fileSelOk__)
+ self.fileSel.cancel_button.connect("clicked", self.__fileSelQuit__)
+ self.fileSel.set_filename(self.workdirEntry.get_text())
+ self.fileSel.show()
+
+
def __subWidgets__(self):
self.labels={}
self.boxes={}
@@ -107,6 +123,9 @@ class prefsWidget(object):
self.eboxes[i].add(self.boxes[i])
self.labelbox[0].pack_start(self.eboxes[i],expand=False,fill=False)
+ #self.workdir_layout=gtk.HBox(homogeneous=False, spacing=0)
+
+
self.overwriteFilesButton=gtk.CheckButton(label=None)
self.overwriteFilesButton.set_active(self.values[20])
self.overwriteFilesButton.show()
@@ -115,7 +134,18 @@ class prefsWidget(object):
self.workdirEntry= gtk.Entry(max=0)
self.workdirEntry.set_text(self.values[17])
self.workdirEntry.show()
- self.boxes[1].pack_end(self.workdirEntry,expand=True,fill=True)
+ self.boxes[1].pack_end(self.workdirEntry,expand=False,fill=False)
+
+ #self.file_button=gtk.Button(None,gtk.STOCK_SAVE_AS)
+ #self.file_button.show()
+
+
+ #self.workdir_layout.pack_start(self.workdirEntry,expand=True,fill=True)
+ #self.workdir_layout.pack_start(self.file_button,expand=False,fill=False)
+ #self.workdir_layout.show()
+
+ #self.labelbox[0].pack_start(self.workdir_layout,expand=False,fill=False)
+
#Performance page
for i in xrange(2,7):
@@ -336,6 +366,7 @@ class prefsWidget(object):
def __makeCons__(self):
self.jack_button.connect("clicked",self.__jack_enabled_check__)
self.jack_lsp_refresh.connect("clicked",self.__runJackLSP__)
+ #self.file_button.connect("clicked",self.__fileSelect__)
def __register_shortcuts__(self):
self.parent.advanced_button.add_accelerator("clicked",self.accel_group,
© All Rights Reserved