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.0.tar.gz (6.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: fear_module-1.0.tar.gz
  • Upload date:
  • Size: 6.5 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.0.tar.gz
Algorithm Hash digest
SHA256 d613597d2bf531076ae35ded0778dc0800309221b959f5557323663fedb37509
MD5 d423151d3c53e24c97a875f068e806a9
BLAKE2b-256 51ff29b92ac05a44ea5becba7552e6c6a1d3f0a07434fb79fffce7fc15e83ff3

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