def _populate_window(self):
        self.target = LabelWidgetFrame(self.contained_frame,
                                       'Temp Target',
                                       HorizontalScale,
                                       from_=0,
                                       to=100)

        self.sensor = LabelWidgetFrame(self.contained_frame, 'Sensor', Entry)
Esempio n. 2
0
 def _populate_window(self):
     self.sensor_frame = LabelWidgetFrame(self.contained_frame,
                                          'Temperature Sensor', Entry)
     self.hot_temp = LabelWidgetFrame(self.contained_frame, 'Hot Temp',
                                      Entry)
     self.target_temp = LabelWidgetFrame(self.contained_frame,
                                         'Target Temp', Entry)
     self.cold_temp = LabelWidgetFrame(self.contained_frame, 'Cold Temp',
                                       Entry)
Esempio n. 3
0
class StaticLightOptionsWindow(LightOptionsWindow):
    def _populate_window(self):
        self.r_frame = LabelWidgetFrame(self.contained_frame, 'R', Entry)
        self.g_frame = LabelWidgetFrame(self.contained_frame, 'G', Entry)
        self.b_frame = LabelWidgetFrame(self.contained_frame, 'B', Entry)

    def _read_frame_settings(self):
        self.settings_class.light_options = {'value': [self.r_frame.get(),
                                                       self.g_frame.get(),
                                                       self.b_frame.get()]}
class TempTargetFanOptionsWindow(FanOptionsWindow):
    def _populate_window(self):
        self.target = LabelWidgetFrame(self.contained_frame,
                                       'Temp Target',
                                       HorizontalScale,
                                       from_=0,
                                       to=100)

        self.sensor = LabelWidgetFrame(self.contained_frame, 'Sensor', Entry)

    def _read_frame_settings(self):
        self.settings_class.fan_options = {
            'target': self.target.get(),
            'sensor': self.sensor.get()
        }
class LockedSpeedFanOptionsWindow(FanOptionsWindow):
    def _populate_window(self):
        self.fan_speed_frame = LabelWidgetFrame(self.contained_frame,
                                                'Fan Speed',
                                                HorizontalScale,
                                                from_=0,
                                                to=100)

    def _read_frame_settings(self):
        self.settings_class.fan_options = {'speed': self.fan_speed_frame.get()}
Esempio n. 6
0
    def _populate_window(self):
        self.even_frame = LabelFrame(self.contained_frame, text='Even')
        self.even_frame.pack()
        self.even = [LabelWidgetFrame(self.even_frame, 'R', Entry),
                     LabelWidgetFrame(self.even_frame, 'G', Entry),
                     LabelWidgetFrame(self.even_frame, 'B', Entry)]

        self.odd_frame = LabelFrame(self.contained_frame, text='Odd')
        self.odd_frame.pack()
        self.odd = [LabelWidgetFrame(self.odd_frame, 'R', Entry),
                    LabelWidgetFrame(self.odd_frame, 'G', Entry),
                    LabelWidgetFrame(self.odd_frame, 'B', Entry)]
Esempio n. 7
0
    def __init__(self, master=None, dbus_client=None):
        assert dbus_client is not None
        assert master is not None

        self.dbus_client = dbus_client  # type: DbusClient

        Frame.__init__(self, master)
        light_modes = [
            'rgb_spectrum', 'spinning_rgb_spectrum', 'alternating', 'static',
            'temperature'
        ]

        fan_modes = ['locked_speed', 'temp_target']

        self.brightness_frame = LabelWidgetFrame(self,
                                                 'Brightness',
                                                 HorizontalScale,
                                                 from_=0,
                                                 to=100)

        self.light_mode_frame = LabelWidgetFrame(self,
                                                 'Light Mode',
                                                 Combobox,
                                                 values=light_modes)

        self.light_mode_options_frame = LabelWidgetFrame(
            self,
            '',
            Button,
            text='Light mode Options',
            command=self._btn_light_mode_options)

        self.light_speed_frame = LabelWidgetFrame(self,
                                                  'Light Speed (seconds)',
                                                  Entry)

        self.fan_mode_frame = LabelWidgetFrame(self,
                                               'Fan Mode',
                                               Combobox,
                                               values=fan_modes)

        self.fan_mode_options_frame = LabelWidgetFrame(
            self,
            '',
            Button,
            text='Fan mode Options',
            command=self._btn_fan_mode_options)

        Button(self, text='Exit', command=self.quit).pack(side='right')
        Button(self, text='Apply', command=self._btn_apply).pack(side='right')
        Button(self, text='Save', command=self._btn_save).pack(side='right')

        self.pack()
 def _populate_window(self):
     self.fan_speed_frame = LabelWidgetFrame(self.contained_frame,
                                             'Fan Speed',
                                             HorizontalScale,
                                             from_=0,
                                             to=100)
Esempio n. 9
0
 def _populate_window(self):
     self.r_frame = LabelWidgetFrame(self.contained_frame, 'R', Entry)
     self.g_frame = LabelWidgetFrame(self.contained_frame, 'G', Entry)
     self.b_frame = LabelWidgetFrame(self.contained_frame, 'B', Entry)