~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to ui4/printsettingstoolbox.py

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-14 20:08:44 UTC
  • mfrom: (2.1.118 lucid)
  • Revision ID: james.westby@ubuntu.com-20091214200844-z8qhqwgppbu3t7ze
Tags: 3.9.10-4
KBSD patch from KiBi (Closes: #560796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
                    current = current_options.get('pageset', '')
359
359
                    self.addControlRow("pageset", self.__tr("Page Set"),
360
360
                        cups.PPD_UI_PICKONE, current,
361
 
                        [('', self.__tr("All pages")),
 
361
                        [('all', self.__tr("All pages")),
362
362
                         ('even', self.__tr("Even pages")),
363
 
                         ('odd', self.__tr("Odd pages"))], '', job_option=True)
 
363
                         ('odd', self.__tr("Odd pages"))], 'all', job_option=True)
364
364
 
365
365
                    self.job_options['pageset'] = current
366
366
#                    if current == u'even':
944
944
 
945
945
            HBoxLayout.addWidget(ComboBox)
946
946
 
947
 
            DefaultButton = DefaultPushButton(self.widget,"DefaultButton", self.group, option,
 
947
            DefaultButton = DefaultPushButton(self.widget, "DefaultButton", self.group, option,
948
948
                choices, default, ComboBox, typ, job_option)
949
949
 
950
950
            ComboBox.setDefaultPushbutton(DefaultButton)
1568
1568
            if choice is not None:
1569
1569
                if not sender.job_option:
1570
1570
                    self.removePrinterOption(sender.option)
1571
 
                    index = sender.control.findText(text)
1572
 
                    sender.control.setCurrentIndex(index)
 
1571
                index = sender.control.findText(text)
 
1572
                sender.control.setCurrentIndex(index)
1573
1573
 
1574
1574
                #self.linkPrintoutModeAndQuality(sender.option, choice) # TODO:
1575
1575
                sender.control.setFocus(Qt.OtherFocusReason)