示例#1
0
 def _create_grid_config_editor(self):
     settings = self._settings
     sizer = wx.FlexGridSizer(rows=6, cols=2, vgap=10, hgap=10)
     sizer.Add(self._label_for('Default column size'))
     sizer.Add(self._number_editor(settings, 'col size'))
     sizer.AddMany(widgets.boolean_editor(
         self, settings, 'auto size cols', 'Auto size columns'))
     sizer.Add(self._label_for('Max column size\n(applies when auto size is on)'))
     sizer.Add(self._number_editor(settings, 'max col size'))
     sizer.AddMany(widgets.boolean_editor(
         self, settings, 'word wrap', 'Word wrap and auto size rows'))
     return sizer
 def _create_grid_config_editor(self):
     settings = self._settings
     sizer = wx.FlexGridSizer(rows=6, cols=2, vgap=10, hgap=10)
     sizer.Add(self._label_for('Default column size'))
     sizer.Add(self._number_editor(settings, 'col size'))
     sizer.AddMany(widgets.boolean_editor(
         self, settings, 'auto size cols', 'Auto size columns'))
     sizer.Add(self._label_for('Max column size\n(applies when auto size is on)'))
     sizer.Add(self._number_editor(settings, 'max col size'))
     sizer.AddMany(widgets.boolean_editor(
         self, settings, 'word wrap', 'Word wrap and auto size rows'))
     return sizer
示例#3
0
 def _create_font_editor(self):
     f = widgets.IntegerChoiceEditor(self._settings, "font size", "Font Size", [str(i) for i in range(8, 16)])
     sizer = wx.FlexGridSizer(rows=2, cols=2, hgap=30)
     sizer.AddMany([f.label(self), f.chooser(self)])
     if "fixed font" in self._settings:
         sizer.AddMany(widgets.boolean_editor(self, self._settings, "fixed font", "Use fixed width font"))
     return sizer
    def _create_test_runner_config_editor(self):
        self._settings.get('confirm run', True)
        settings = self._settings
        sizer = wx.FlexGridSizer(rows=2, cols=2, vgap=10, hgap=10)

        sizer.AddMany(widgets.boolean_editor(
            self, settings, 'confirm run', 'Asks for confirmation to run all'
                                           ' tests if none selected '))
        return sizer
示例#5
0
 def _create_grid_config_editor(self):
     settings = self._settings
     sizer = wx.FlexGridSizer(rows=3, cols=2, vgap=10)
     sizer.Add(self._label_for("Default column size"))
     sizer.Add(self._number_editor(settings, "col size"))
     sizer.AddMany(widgets.boolean_editor(self, settings, "auto size cols", "Auto size columns"))
     sizer.Add(self._label_for("Max column size\n(applies when auto size is on)"))
     sizer.Add(self._number_editor(settings, "max col size"))
     return sizer
 def _create_font_editor(self):
     f = widgets.IntegerChoiceEditor(
         self._settings, 'font size', 'Font Size',
         [str(i) for i in range(8, 16)])
     sizer = wx.FlexGridSizer(rows=2, cols=2, hgap=30)
     sizer.AddMany([f.label(self), f.chooser(self)])
     if 'fixed font' in self._settings:
         sizer.AddMany(widgets.boolean_editor(
             self, self._settings, 'fixed font', 'Use fixed width font'))
     return sizer
示例#7
0
 def _add_settings(self, settings):
     installed_libs = 'use installed robot libraries'
     self.Sizer.AddMany(
         widgets.boolean_editor(
             self, settings, installed_libs, installed_libs.capitalize(),
             'Use standard libraries of installed Robot Framework instead '
             'of RF bunlded with RIDE.'))
     list_settings = [
         ('auto imports', 'Comma separated list of libraries to be '
          'automatically imported.'),
         ('pythonpath', 'Comma separated list of directories to be added '
          'to PYTHONPATH when libraries are searched.'),
         ('library xml directories', 'Comma separated list of directories '
          'containing library spec files.')
     ]
     for (name, help) in list_settings:
         self._create_list_setting_editor(settings, name, help)
 def _create_font_editor(self):
     f = widgets.IntegerChoiceEditor(
         self._settings, 'font size', 'Font Size',
         [str(i) for i in range(8, 16)])
     sizer = wx.FlexGridSizer(rows=3, cols=2, vgap=10, hgap=30)
     sizer.AddMany([f.label(self), f.chooser(self)])
     fixed_font = False
     if 'zoom factor' in self._settings:
         z = widgets.SpinChoiceEditor(
             self._settings, 'zoom factor', 'Zoom Factor', (-10, 20))
         sizer.AddMany([z.label(self), z.chooser(self)])
     if 'fixed font' in self._settings:
         sizer.AddMany(widgets.boolean_editor(
             self, self._settings, 'fixed font', 'Use fixed width font'))
         fixed_font = self._settings['fixed font']
     if 'font face' in self._settings:
         s = widgets.StringChoiceEditor(self._settings, 'font face', 'Font Face', ReadFonts(fixed_font))
         sizer.AddMany([s.label(self), s.chooser(self)])
     return sizer