Skip to content

Commit

Permalink
New Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raspiduino committed Nov 18, 2020
1 parent 0dd16fe commit e15ea8d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# ComAdd
This small app helps you control your screentime and be less addicted to your computer. Written in Python.
This script prevent you from distractions
## Installation
```bash
git clone https://github.com/raspiduino/comadd.git
cd comadd
pip install pywin32
comadd.py
```
Or you can goto <a href="https://github.com/raspiduino/comadd/releases">Release</a>
<br>Don't use the extension yet!
## Todo
- Add time tracker
- Fix extension
## License
Under <a href="https://github.com/raspiduino/comadd/blob/master/LICENSE">GPL-v3</a>
7 changes: 5 additions & 2 deletions comadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import webbrowser
import time
import subprocess
import stat

if not admin.isUserAdmin():
# Not run as root yet
Expand All @@ -29,6 +30,8 @@
admin.runAsAdmin("python3 comadd.py")
exit(1)

#ttk.Style().theme_use("winnative")

# Read setting
# Setting file layout:
# 1. Session time
Expand Down Expand Up @@ -230,7 +233,7 @@ def inserta():
entry.pack()
def getinput():
global applist
applist.insert(ttk.END, str(entry.get()))
applist.insert(tk.END, str(entry.get()))
global apps
apps.append(str(entry.get()))
wsetting()
Expand Down Expand Up @@ -269,7 +272,7 @@ def insertb():
entry.pack()
def getinput():
global sitelist
sitelist.insert(ttk.END, str(entry.get()))
sitelist.insert(tk.END, str(entry.get()))
global sites
sites.append(str(entry.get()))
wsetting()
Expand Down

0 comments on commit e15ea8d

Please sign in to comment.