Skip to content

Pymasl - Python Mac Alert System Library. Has more features than other libraries such as add icons, widgets, scrollbars to alert.

Notifications You must be signed in to change notification settings

Alexandro1112/pymasl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pymasl

Pymasl - Python Mac Alert System Library. Has more features than other libraries such as add icons, widgets, scrollbars to alert.

installation


git clone https://github.com/Alexandro1112/pymasl/

Consider main methods.

Create object instance pymasl so easy. Bellow we create Alert object, and create alert with

title -> str

message -> str

icon -> pymasl.constants | image-file

buttons -> list | tuple | str

width -> int

height -> int

from pymasl.constants import WARNING_ICON

sender = Alert()

title = 'My new alert'
message = 'I added to this alert icon'
icon = WARNING_ICON
buttons = ('OK', 'EXIT')
sender.create_alert(title=title, message=message, icon=icon, buttons=buttons, width=30, height=100)

And to this alert radio button

radio_button_width -> int

radio_button_height -> int

radio_button_color -> str

radio_button_border -> int

radio_button_font -> str ( font name )

radio_button_title -> str

radio_button_font_size -> int

radio_button_text_rotation -> int

radio_button_state -> int ( state of button )

sender.add_radio_button(radio_button_width=150, radio_button_height=40,
                        radio_button_color='black',
                        radio_button_border=10, radio_button_font='Arial Black',
                        radio_button_title='RadioButton', radio_button_font_size=17,
                        radio_button_text_rotation=0, radio_button_state=0)

And send alert.

sender.send()

About

Pymasl - Python Mac Alert System Library. Has more features than other libraries such as add icons, widgets, scrollbars to alert.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages