blob: 7b004ad7b7315b0b996ec76784c90645354bd6d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import webbrowser
import ctypes
def show_message(title, text, style):
if style == 1:
style = 16
elif style == 2:
style = 32
elif style == 3:
style = 48
elif style == 4:
style = 64
else:
style = 0
ctypes.windll.user32.MessageBoxW(0, text, title, style)
def open_browser(data):
urls = data.split(',')
for url in urls:
if 'http://' in url or 'https://' in url:
pass
else:
url = 'https://' + url
webbrowser.open(url, new=2)
|