diff options
| author | Bobby <[email protected]> | 2022-12-02 19:01:22 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-12-02 19:01:22 -0500 |
| commit | 00a75681361ff8cca861f9c9616cb095ba425d32 (patch) | |
| tree | b058ec3fb081a11e07f86ce3e46c4fffa39dd9a7 /src/windows/plotviewer.py | |
| parent | fec7417c4b78fa86aa53e7768e93c0e1d33b5eba (diff) | |
| download | RedditEngagementPrediction-00a75681361ff8cca861f9c9616cb095ba425d32.tar.xz RedditEngagementPrediction-00a75681361ff8cca861f9c9616cb095ba425d32.zip | |
Requirements Added
Diffstat (limited to 'src/windows/plotviewer.py')
| -rw-r--r-- | src/windows/plotviewer.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/windows/plotviewer.py b/src/windows/plotviewer.py index 8fd8d98..40af100 100644 --- a/src/windows/plotviewer.py +++ b/src/windows/plotviewer.py @@ -50,6 +50,7 @@ class PlotViewer(customtkinter.CTk): def create_tabs(self): self.tabview = customtkinter.CTkTabview(self) + self.tabview.add("View Data / Predictions") self.tabview.add("Posts") self.tabview.add("Subscribers") self.tabview.add("Author Activity") @@ -59,7 +60,6 @@ class PlotViewer(customtkinter.CTk): self.tabview.add("Best Time Analysis") self.tabview.add("Scores Boxplot") self.tabview.add("Scores vs Comments") - self.tabview.add("View Data / Predictions") fig = Figure(figsize=(12, 8), dpi=72) self.posts_plot = fig.add_subplot(111) @@ -267,6 +267,10 @@ class PlotViewer(customtkinter.CTk): self.num_comments_metrics_button = customtkinter.CTkButton(self.tabview.tab("View Data / Predictions"), text="Num Comments Metrics") self.num_comments_metrics_button.pack(pady=10, padx=10, side=tkinter.LEFT) + # button for model plots + self.model_plots_button = customtkinter.CTkButton(self.tabview.tab("View Data / Predictions"), text="Model Plots") + self.model_plots_button.pack(pady=10, padx=10, side=tkinter.RIGHT) + # button for predicting self.predict_button = customtkinter.CTkButton(self.tabview.tab("View Data / Predictions"), text="Predict a new post", command=self.predict) self.predict_button.pack(pady=10, padx=10, side=tkinter.RIGHT) |
