Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added AlgoritmUnlock/Algorithm Unlock.pptx
Binary file not shown.
18 changes: 18 additions & 0 deletions AlgoritmUnlock/Algorithm Unlock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Description
We have developed To-Do list app which will help students and working professionals to manage their time more productively. By our app, they can look forward to their daily goals. They can prioritize their daily task in a better way.
It will bring structure to everyone's routine. This will help to reduce anxiety in people's lives by doing things in an organized way.
Our app help everyone to delegate and relieve stress by making them feel productive. The act of writing down our tasks hold us accountable to get them done.

Contents of the directory:
1. Python file
2. Presentation file(.pptx)
3. Text file

Ways to host the project:
1. Github
2. Code editiors:
a. Python IDLE
b. Visual studio code
c. Atom
d. Sublime text
e. pycharm
71 changes: 71 additions & 0 deletions AlgoritmUnlock/TO-DO-LIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import tkinter
import tkinter.messagebox
import pickle

root = tkinter.Tk()
root.title('To-Do List')


def add_task():
task = entry_task.get()
if task != '':
listbox_tasks.insert(tkinter.END, task)
entry_task.delete(0, tkinter.END)
else:
tkinter.messagebox.showwarning(title='Warning!', message='You must enter a task.')


def delete_task():
try:
task_index = listbox_tasks.curselection()[0]
listbox_tasks.delete(task_index)
except:
tkinter.messagebox.showwarning(title='Warning!', message='You must select a task.')


def load_tasks():
try:
tasks = pickle.load(open('tasks.docx', 'rb'))
for task in tasks:
listbox_tasks.insert(tkinter.END, task)
except:
tkinter.messagebox.showwarning(title='Warning!', message='Cannot find tasks.dat')


def save_tasks():
tasks = listbox_tasks.get(0, listbox_tasks.size())
listbox_tasks.delete(0, tkinter.END)
pickle.dump(tasks, open('tasks.docx', 'rb+'))


# create GUI
team_name= tkinter.Label(root,text='TO DO LIST from Algoritm Unlock',font=('calibri',20)).pack()

frame_tasks = tkinter.Frame(root)
frame_tasks.pack()

listbox_tasks = tkinter.Listbox(frame_tasks, height=10, width=50, bg='#aaa')
listbox_tasks.pack(side=tkinter.LEFT)

scrollbar_tasks = tkinter.Scrollbar(frame_tasks)
scrollbar_tasks.pack(side=tkinter.RIGHT, fill=tkinter.Y)

listbox_tasks.config(yscrollcommand=scrollbar_tasks.set)
scrollbar_tasks.config(command=listbox_tasks.yview)

entry_task = tkinter.Entry(root, width=50)
entry_task.pack()

button_add_task = tkinter.Button(root, text='Add task', width=48, command=add_task, bg='blue', )
button_add_task.pack()

button_delete_task = tkinter.Button(root, text='Delete task', width=48, command=delete_task, bg='crimson')
button_delete_task.pack()

button_load_tasks = tkinter.Button(root, text='Load tasks', width=48, command=load_tasks, bg='green')
button_load_tasks.pack()

button_save_tasks = tkinter.Button(root, text='Save tasks', width=48, command=save_tasks, bg='cyan')
button_save_tasks.pack()

root.mainloop()