PK~JQ(( aui/App.pyimport sys class App: """Abstraction over an application""" DEFAULT_TITLE = "Python AUI application" def __new__(cls, ui, title=None): return object.__new__(sys.modules['aui'].App) def __init__(self, ui, title=None): """ Keyword arguments: ui -- an object representing User Interface (widgets, containers) title -- window title | str """ pass def run(self): """Runs application""" print("*** make sure to import a backend ***") PKϚJSp}}aui/__init__.py""" An abstraction layer over UI libraries in Python """ __version__ = '0.1.1' from aui.App import App import aui.widgets PK}Jooaui/widgets.pyimport sys # widgets class Button: """ Represents button Keyword arguments: text -- button text | str onclick -- function invoked after pressing the button | function: Button -> void Attributes: wide -- makes the button wide """ def __new__(cls, text=None, onclick=None): return object.__new__(sys.modules['aui.widgets'].Button) def __init__(self, text, onclick=None): self.wide = self def destroy(self): """Destroys the button""" pass class Checkbox: """ Represents checkbox in UI Keyword arguments: text -- checkbox text | str selected -- whether the checkbox is selected on init | boolean onchange -- function invoked after toggling the checkbox | function: Checkbox -> void """ def __new__(cls, text=None, selected=False, onchange=None, *args): return object.__new__(sys.modules['aui.widgets'].Checkbox) def __init__(self, text, selected=False, onchange=None): pass def destroy(self): """Destroys the checkbox""" pass class Input: """ Represents input field in UI Keyword arguments: value -- default value | str (default: "") onenter -- function called after the return key is pressed | function: Input -> void Attributes: wide -- makes the input wide """ def __new__(cls, value="", onenter=None, *args): return object.__new__(sys.modules['aui.widgets'].Input) def __init__(self, value="", onenter=None): self.wide = self def destroy(self): """Destroys the input field""" pass class Label: """ Represents label in UI Keyword arguments: text -- label text | str """ def __new__(cls, text=None, *args): return object.__new__(sys.modules['aui.widgets'].Label) def __init__(self, text): pass def destroy(self): """Destroys the label""" pass class Text: """ Represents multiline input field in UI Keyword arguments: text -- widget text | str (default: "") """ def __new__(cls, text=None, *args): return object.__new__(sys.modules['aui.widgets'].Text) def __init__(self, text=""): pass def destroy(self): """Destroys the text field""" pass # containers class Vertical: """ Represents vertical container in UI Arguments: *children -- children elements of the container """ def __new__(cls, *args): return object.__new__(sys.modules['aui.widgets'].Vertical) def append(self, child): """ Appends widget to the vertical container Keyword arguments: child -- the widget to be placed into the container """ pass def create(self, parent, align=None): """ Creates vertical container and assigns it to its parent Keyword arguments: parent -- parent of the element to be put into align -- alignment of the element in container tk.constants.(TOP/RIGHT/BOTTOM/LEFT) """ pass def destroy(self): """Destroys the vertical container""" pass class Horizontal: """ Represents horizontal container in UI Arguments: *children -- children elements of the container """ def __new__(cls, *args): return object.__new__(sys.modules['aui.widgets'].Horizontal) def append(self, child): """ Appends widget to the horizontal container Keyword arguments: child -- the widget to be placed into the container """ pass def create(self, parent, align=None): """ Creates horizontal container and assigns it to its parent Keyword arguments: parent -- parent of the element to be put into align -- alignment of the element in container tk.constants.(TOP/RIGHT/BOTTOM/LEFT) """ pass def destroy(self): """Destroys the horizontal container""" pass PK!H;@QPaui-0.1.1.dist-info/WHEEL1 0 RZq+D-Dv;_[*7Fp ܦpv/fݞoL(*IPK!Hc@#!aui-0.1.1.dist-info/METADATAWKs6Wl%D7M3uXSy0ARCo_T4X,v>L8^pgoRWsxjo6:MVJw<C7Y: 󾪽II:Z3r#4Ei ;e\4)t"]cIN i^*"iFTX{=X&ǏtMSgW4}MHSj&ׂɰy ^1Jedz0V *ܟ=E{pxx3,Q-`C=iڃ8M1zB j0O]˚IAy%-P"RqI> 7&Q@m\˦mf't87͑RW"MCZ#袭ސۖ* k|'E($R5rH]B |#lO/ Eq"9ǃƉZV G=Ϙi`+[c!|u?wӫnzv$‚raKNz0|Jb/|GG-8o.ເS1A(p`(];>7_/Rz~[p^!džzoqX,'40ӯ&$_KUTy`[痢vga%Cz{#hnX?!JQXY2X?ckݨ7lV\2Z)_z#kD9Gv