def __init__(self, parent): PlayBoxControl.__init__(self, parent) RectBox.__init__(self, parent) self.parent = parent self.st = parent.parent.st.PLAYBOX self.wave_x = 220 self.wave_height = 40 self.show_apic = True self.apic_size = 150 self.wave_max = True self.button_size = 17 self.cursor_stroke = 4 self.cache.timestamp = time.time() self.cache.framemove = None self.cache.oneshotkey = False color = self.st.PLAY_BG_COLOR self.SetBackgroundColour(color) self.Wave = PlayBoxWave(self) self.Info = PlayBoxInfo(self) # self.InfoR = PlayBoxInfoR(self) self.Title = PlayBoxTitle(self) self.Spectrum = PlayBoxSpectrum(self) self.VectorScope = PlayBoxVectorScope(self) self.Apic = PlayBoxApic(self) self.ControlButton = PlayBoxControlButton(self) self.VolumeSlider = VolumeSlider(self) self.AudioControl = AudioControl(self) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.reInitBuffer = True self.cache.down.tabIdx = None self.cache.drag.tabIdx = None self.cache.down.closeIdx = None self.cache.drag.closeIdx = None self.cache.tabIdx = None self.cache.skip = Struct(leftDClick=False) self.tab_num_limit = 20 self.tab_width = 200 self.tab_height = 26 self.bottom_height = 1 self.tab_rel_width = 200 self.scrollbar_size = 6 self.TextEdit = None self.text_edit_tabIdx = None self.rects = ((0, 0, 0, 0)) self.FileDrop = ListBoxTabDnD(self) self.SetDropTarget(self.FileDrop) # self.SliderV = ListBoxTabSliderV(self) self.bmp = Struct() # self.bmp.add = images.listbox_tab_add.GetBitmap() self.bmp.close = images.listbox_tab_close.GetBitmap() color = self.parent.st.BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.height = 23 self.buffer.fps = 30 self.font_colors = [] self.button_colors = [] self.LoadBitmapImages() self.font_color_on = (0, 0, 0) self.font_color_off = (125, 125, 125) self.button_color_on = (200, 200, 220) self.button_color_toggle_on = (255, 120, 120) self.button_color_off = (0, 0, 0) self.button_color_down = (180, 180, 180) self.polygons = Struct(play=None, next=None, prev=None) self.downed_button = None self.button_flash = [0.0, 0.0, 0.0, 0.0, 0.0] self.button_status = [False, False, False, False, False] self.toggle_buttons = [True, False, True, False, True] # self.button_flash = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0] # self.button_status = [False, False, False, False, False, False] # self.toggle_buttons = [True, False, True, False, True, True] self.SetBackgroundColour((35, 35, 35)) self.SetPreInitRects() self.SetButtonColors() self.OnSize() self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.reInitBuffer = True self.bmp = Struct() self.bmp.add = images.listbox_tab_add.GetBitmap() color = self.parent.st.HEADER_BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.pending = Struct(drag_vpy=None) color = self.parent.st.SCROLLBAR_BG_COLOR self.SetBackgroundColour(color) self.reInitBuffer = True self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.width = 4 self.volume = 1.0 self.buffer.fps = 30 self.muted_volume = None color = self.parent.st.PLAY_BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.buffer.fps = 30 self.information = GetPreference('playbox_information') if self.information is None: self.information = '000.0 | - | 00:00:00 | 00:00:00' self.SetBackgroundColour(COLOR_TOOLBAR_BG) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.last_rect = self.GetRect() self.title = '' self.buffer.fps = 30 self.rect = wx.Rect(0, 0, 0, 0) title_type = GetPreference('play_title_format_type') if title_type is None: title_type = 0 self.title_type = title_type self.SetBackgroundColour((180, 180, 180)) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.position = 0.0 self.height = 40 self.margin = 5 self.buffer.fps = 60 self.cursor_width = 4 self.highlight_waveform = None self.last_size = self.GetSize() self.rectHighlight = (0, 0, 0, 0) self.SetDropTarget(PlayBoxDnD(self.parent)) color = self.parent.st.PLAY_BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.reInitBuffer = True self.rects = [] self.scrollbar_size = 6 self.is_slider_v_shown = True self.is_slider_h_shown = False self.always_show_slider = True self.virtual_position_y = 0 self.st = parent.parent.st.LISTBOX self.TabList = ListBoxTabList(self) self.TabHeader = ListBoxTabHeader(self) self.SliderV = ListBoxTabSliderV(self) color = self.st.BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent fps = GetPreference('vectorscope_fps') if fps is None: fps = 60 self.buffer.fps = fps self.size = 50 self.margin = 2 self.vectorscope = [] self.polygon = ( (0, 0), (0, 0), ) color = self.parent.st.PLAY_BG_COLOR self.SetBackgroundColour(color) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.margin = 2 self.size = 118 self.apic = None self.path = None self.buffer.fps = 30 self.last_size = self.size show_left = GetPreference('apic_show_left') if show_left is None: self.left = True else: show_left = show_left self.overlap_mask = images.apicoverlapmask.GetBitmap() self.SetSize((self.size, self.size)) self.InitBuffer()
def __init__(self, parent): RectBox.__init__(self, parent) self.parent = parent self.scale = 1 self.max_scale = 4 self.width = 320 * self.scale self.height = 39 self.resolution = 1 self.saturation = 0.1 fps = GetPreference('spectrum_fps') if fps is None: fps = 60 self.buffer.fps = fps self.ground = ((0, 0, 0, 0), ) color = self.parent.st.PLAY_BG_COLOR self.SetBackgroundColour(color) # self.InitGround() self.InitBuffer()