-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
29 lines (17 loc) · 620 Bytes
/
main.py
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
28
29
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import eel
eel.init("web") # EEL initialization
@eel.expose
def binary(number):
"""This function converts the entered number from the decimal system to binary"""
return f"{int(number):b}"
@eel.expose
def octal(number):
"""This function converts the entered number from the decimal system to octal"""
return f"{int(number):o}"
@eel.expose
def hexadecimal(number):
"""This function converts the entered number from the decimal system to hexadecimal"""
return f"{int(number):x}"
eel.start("main.html", size=(700, 400)) # Starting the App