Skip to content
Merged
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
14 changes: 10 additions & 4 deletions tkinter-skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
'''
TO DO LIST

- Add functionality that allows emails to be moved
- - Record whether the user chose to automatically move all emails in raiser CSV function

- Fix Pathing Error in Windows (control f 'logs/')
- Debug functionalities on Windows machines, such as key binds, etc
- Add a waiting animation when Classifying Emails
Expand All @@ -24,6 +25,8 @@
- idea 2: rotate IP addresses, delay scrape time
- optimize retrieving data (maybe line by line) so a crash wont lose all the data



TO SWITCH FROM WINDOWS AND MAC

- look up pathlib in classifier
Expand Down Expand Up @@ -532,6 +535,9 @@ def onselect(self, event):
self.refreshFrame(self.rightmainframe)
self.refreshFrame(self.leftmainframe)

# displays the confidence
self.handleViewScore()

# builds table
self.buildBottomTable()

Expand Down Expand Up @@ -860,7 +866,7 @@ def __init__(self, parent, csv_path=None, df=None, merged_df=False, title='Title
self.merged_df = df
raiser_headers = ['constituent_id', 'date', 'move/status change (or n/a)', 'type',
'author', 'description', 'text']
self.df = self.df.loc[:, raiser_headers]
self.df = self.df.loc[:, raiser_headers].reset_index(drop=True)


simpledialog.Dialog.__init__(self, parent, title)
Expand Down Expand Up @@ -1008,7 +1014,7 @@ def callback_checked(*args):
threshold_entry.grid_forget()

# tk.Label(master, text='Automate Emails?').grid(row=3, column=0)
checkbutton = tk.Checkbutton(master, text='Automate Things!',
checkbutton = tk.Checkbutton(master, text='Move Emails Automatically!',
variable=self.checked)
checkbutton.grid(row=3, column=0, sticky='nsew')

Expand Down Expand Up @@ -1038,6 +1044,6 @@ def apply(self):


if __name__ == "__main__":
dapp = DisplayApp(800, 550)
dapp = DisplayApp(1600, 900)
dapp.main()