Skip to main content

Python module for making fear apps Fear Application

Project description

fear_module ENG

Python 3.8, 3.9, 3.10, 3.11, 3.12

fear_module - this module is a Python library for creating troll applications!

FEAR - is an entertainment project. Be careful with him. It is not subject to monetization.

Installation

Install the current version with PyPI:

pip install fear_module

Or from Github:

pip install https://github.com/Keker-dev/fear_module.git

Usage

app = Fear(main_text="text", main_image="/path_to_image")

if __name__ == '__main__':
    app.run()

Warning! The standard on_quit method shuts down the system! If you want to change the method that occurs when you close the application, do the following:

app.on_quit = lambda: print("End.")

Example

Add one scene.

from fear_module import Fear

app = Fear(main_text="text", main_image="/path_to_image")
app.add_scene(name="FirstScene", text="text", image="/path_to_image", sound="/path_to_sound", button_text="click me")

if __name__ == '__main__':
    app.run()

Contributing

Bug reports and/or pull requests are welcome

License

The module is available as open source under the terms of the MIT License

fear_module RU

Python 3.8, 3.9, 3.10, 3.11, 3.12

Модуль fear_module - это библиотека Python для создания приложений-троллей. Он содержит класс Fear, который позволяет создавать окна с кнопками и изображениями, а также добавлять новые сцены с текстом, изображениями и звуками. Модуль также позволяет блокировать клавиатуру и воспроизводить звуки.

Fear - развлекательный проект. Будьте осторожны с ним. Не для коммерческого использования.

Установка

Установите актуальную версию с помощью PyPI:

pip install fear_module

Или Github:

pip install https://github.com/Keker-dev/fear_module.git

Использование

app = Fear(main_text="text", main_image="/path_to_image")

if __name__ == '__main__':
    app.run()

Осторожно! Стандартный метод on_quit вырубает систему! Если вы хотите изменить метод, который происходит, когда вы закрываете приложение, сделайте так:

app.on_quit = lambda: print("End.")

Пример

Простой пример с одной сценой.

from fear_module import Fear

app = Fear(main_text="text", main_image="/path_to_image")
app.add_scene(name="FirstScene", text="text", image="/path_to_image", sound="/path_to_sound", button_text="click me")

if __name__ == '__main__':
    app.run()

Сообщество

Отчеты об ошибках и/или запросы на вытягивание приветствуются.

Лицензия

Модуль доступен как открытый исходный код по условиям лицензии MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fear_module-1.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file fear_module-1.1.tar.gz.

File metadata

  • Download URL: fear_module-1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for fear_module-1.1.tar.gz
Algorithm Hash digest
SHA256 e46510aa5f25d5f4447c34994acfa9bb2797808ede54df4f568262e54e7bdcf3
MD5 b524fe99850b789457b83d2fae885e1f
BLAKE2b-256 f20a2bafea51f23929dfe66a3612936f2589284e729a6c2ebdc08a2237f19225

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page