Esempio n. 1
0
 def __init__(self, exaile):
   self.exaile = exaile
   # Load prebuilt Glade GUI and create shared object properties
   gladefile = os.path.dirname(__file__) + "/xlcbgui.glade"
   self.builder = gtk.Builder()
   self.builder.add_from_file(gladefile)
   self.window = self.builder.get_object("window1")
   # Button connections for GUI
   buttonActions = { "on_beginButton_clicked" : self._goButton_cb,
           "on_MainWindow_destroy" : gtk.main_quit }
   self.builder.connect_signals(buttonActions)
   # For the two special combo boxes...
   self.processingTable = self.builder.get_object("processingTable")
   #Working with items in Glade's combo boxes is awful, so I 
   #added two of them manually with GTK
   self._add_manual_combos()
   self.formats = xlcbformats.get_formats()
   self.config = xlcbconfig.get_settings_from_exaile()
   self._set_gui_from_config()
   self.status = self.builder.get_object("statusLabel")
   self.show()
Esempio n. 2
0
 def _goButton_cb(self, buttonProbably):
   self.status.set_text("Building playlist...")
   xlcbconfig.save_settings_to_exaile(self.builder, self.convertBox, self.qualityBox)
   self.config = xlcbconfig.get_settings_from_exaile()
   self._gogogo()