def load(self): tmp_controls = [] # Build the task controls tmp_controls.extend(utils.buildTaskView(self.l + self.logo_size + self.space*2, self.t + self.space, self.w - self.logo_size - self.space*2, self.h - 2*self.space, self.event)) # Build Ok/Cancel controls tmp_controls.extend(utils.buildOkCancelButtons(self.l+(self.w-300)/2, self.t + self.h - self.space - 30, 300, 30)) # Build Delete controls tmp_controls.extend(utils.buildDeleteButton(self.l+self.w-30 , self.t + self.h - self.space - 30, 30, 30)) # Add all controls to screen utils.addControls(self, tmp_controls, self.control_to_data)
def load(self): tmp_controls = [] # Build the navigation controls tmp_controls.extend( utils.buildNavigation( self.l + self.space, self.t + self.logo_size + self.space, self.logo_size, 60, self.selection_date ) ) # Build Ok/Cancel controls tmp_controls.extend( utils.buildOkCancelButtons(self.l + (self.w - 300) / 2, self.t + self.h - self.space - 30, 300, 30) ) # Add all controls to screen utils.addControls(self, tmp_controls, self.control_to_data) # Build the controls that refreshed by update self.update()
def load(self): tmp_controls = [] # Build the timezone list control tmp_controls.extend(utils.builTimezoneView(self.l + self.logo_size + self.space*2, self.t + self.space, self.w - self.logo_size - self.space*2, self.h - 30 - 2*self.space,'')) # Build Ok/Cancel controls tmp_controls.extend(utils.buildOkCancelButtons(self.l+(self.w-300)/2, self.t + self.h - self.space - 30, 300, 30)) # Add all controls to screen utils.addControls(self, tmp_controls, self.control_to_data) ctrl = self.getControl(utils.getTypeControl(self, self.control_to_data, utils.CONTROL_TYPE_TIMEZONE_LIST)) items = [] for tz in pytz.all_timezones: itm = xbmcgui.ListItem(label=tz) items.append(itm) ctrl.addItems(items)