معرفی شرکت ها


applepy-ui-0.0.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Applepy is a UI library inspired by Swift UI that leverages AppKit and UIKit (soon) to create native MacOS, iOS and iPadOS user interfaces in the Python programming language with a declarative syntax.
ویژگی مقدار
سیستم عامل -
نام فایل applepy-ui-0.0.5
نام applepy-ui
نسخه کتابخانه 0.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Eduardo Henrique <eduardohleite@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/applepy-ui/
مجوز MIT License Copyright (c) 2023 Eduardo Henrique Leite Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# applepy Applepy is a UI library inspired by Swift UI that leverages AppKit and UIKit to create native MacOS, iOS and iPadOS user interfaces in the Python programming language with a declarative syntax. *This project is at proof of concept stage and is not feature complete. Please do not use it in production.* ## Dependencies * [rubicon-objc](https://github.com/beeware/rubicon-objc) * [pydispatcher](https://github.com/mcfletch/pydispatcher) ## Installation The latest version is available for installation in PyPI: >pip install applepy-ui ## Usage ```python class Sample(App): def body(self) -> Scene: with Window(title='Applepy example', size=Size(640, 100)) as w: with VerticalStack(): with HorizontalStack(): Label(text='Hello') Label(text='World') return w.center() Sample().run() ``` ![image](https://github.com/eduardohleite/applepy/blob/master/screenshot.png) It also works on mobile: ```python class MobileSample(App): def body(self): with SimpleScreen() as s: with HorizontalStack(): with VerticalStack(): Label(text='Hello World') return s def main(): sys.exit(MobileSample().run()) ``` <img src="https://github.com/eduardohleite/applepy/blob/master/screenshot-mobile.png" height="600"> Events can be handled synchronously and asynchronously in the same context: ```python class AsyncSample(App): def clicked(self) -> None: time.sleep(2) Alert.show_info(informative_text='Hello', message_text='Synchronous World') async def clicked_async(self) -> None: await asyncio.sleep(2) Alert.show_info(informative_text='Hello', message_text='Asynchronous World') def body(self) -> Scene: with Window(title='Applepy async example', size=Size(640,480)) as w: with HorizontalStack(): with VerticalStack(): Button(title='Sync action', action=self.clicked) Button(title='Async action', action=self.clicked_async) return w.center() AsyncSample().run_async() ``` For a more complete example, please check [example.py](example.py)


نیازمندی

مقدار نام
>=0.4.5 rubicon-objc
>=2.0.7 PyDispatcher


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl applepy-ui-0.0.5:

    pip install applepy-ui-0.0.5.whl


نصب پکیج tar.gz applepy-ui-0.0.5:

    pip install applepy-ui-0.0.5.tar.gz