def __init__(self, parent, url): super().__init__( parent, workspace.ui.Image( workspace.Stream(__name__, "data/16/information.png"))) self.url = url self.set_min_width(40)
def __init__(self, parent): super().__init__(parent) row = workspace.ui.Row(self, padding=20) self.image_view = workspace.ui.ImageView( self, workspace.ui.Image( workspace.Stream(__name__, "data/48/zip-file.png") ), ) row.add(self.image_view, top=-10, bottom=-10, right=10) col = workspace.ui.Column() row.add(col, expand=True, fill=False, top=0) self.source_label = workspace.ui.Label( self, "No archive loaded", font="16px Medium Roboto" ) col.add(self.source_label) col.spacer(2) self.format_row = workspace.ui.Row() col.add(self.format_row) # self.format_label = workspace.gui.Label(self, "ZIP ARCHIVE") self.format_label = workspace.ui.Label(self, "DROP FILE HERE TO LOAD") font = workspace.ui.Font("Roboto", 12) self.format_label.set_font(font) self.format_label.set_text_color(workspace.ui.Color(0x80, 0x80, 0x80)) self.format_row.add(self.format_label, expand=True)
def __init__(self, parent, url=""): super().__init__( parent, workspace.ui.Image(workspace.Stream(__name__, "data/16/folder.png")), ) self.url = url self.set_min_width(40)