PKePJQ(( 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 ***") PKePJ-hhaui/__init__.py""" An abstraction layer over UI libraries in Python """ __version__ = '0.1' from aui.App import App PKePJooaui/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.dist-info/WHEEL1 0 RZq+D-Dv;_[*7Fp ܦpv/fݞoL(*IPK!H"ğaui-0.1.dist-info/METADATAWIw6WL'Mzc:_'/rb$$! :\8 ϸelk#TatJkDԑDWMY2}i,3V&Hv5>)2ʹD/n93Ue(vcmm㵰&sUo%k̞ ckw`I/D+'^_tetNت?`ಥ.yɄL CR\"d~P5%қo'#V6U!I)qs8k~|4ljYYj Z7(؜W9Wֽgh$7wڠzr< p=|vk 4$Kt0`Y Q`7 q)Q8jaTpP!V Zi X+e,ߢ'I&jș31D7tQ2Ƀ DR_K}^G+k9ҟ `cwe&UExIQ- JapHXsk6yXEXWuc˸VgJUefଣcUxG}Cę3ċNz2D?Yn %A@nl:8R7S87NLND2+\g!MYƀm140sSXVOh"F)^Q0!k,>)*HScN(߅ȘCr|`TiXPAĿw 8O#7҆Fܛz 0ţ?FZ7&Q@mq\r-"i:`yidTOSVh W `+ AT<1@FA0Jf O6<$Bi@`3-@⼕+ȁ93$g?2i:\ ݶvҰ09 ݵ`njhJ2!)Wt d!v{G8: hm8kpq쟲6-N=w__~)Kmv}dhzS4S"ha{SF9y駥w!g`-vCz#4tw7,H|(`k ژvf! F5p 3*뇌R͗;~NƑ\Z xgݮMBXHz h{_:L#tJ5(x4R 8=b S7pZֿ*W?&o/o4-" ~RߡPK!H K9"aui-0.1.dist-info/RECORDm̹@oe9! +ȡ|Xؿ!3,Kp7{ĚuMc=.FQWKȲdb ;)mp3 CAj+&h 0SnySfӋYLH#qSWoG-'SD1:Tw2,b_CS8Idyo4PXfn5 &9>ls83)8,:+v8˹`cx@wǭ- Gnqt8 H;K` PKePJQ(( aui/App.pyPKePJ-hhPaui/__init__.pyPKePJooaui/widgets.pyPK!H;@QPaui-0.1.dist-info/WHEELPK!H"ğaui-0.1.dist-info/METADATAPK!H K9"?aui-0.1.dist-info/RECORDPK