8000 Remove the "old" graph mode by viiru- · Pull Request #264 · pytrainer/pytrainer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove the "old" graph mode #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

viiru-
Copy link
Member
@viiru- viiru- commented Feb 13, 2024

This hasn't worked in years, so no point in carrying the option and code.

Copy link
Member
@hjerning hjerning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Grepping for new.*graph still hits one match in pytrainer/core/activity.py, it's just a comment but a good opportunity to get rid of.

    pace = 0 #TODO this should be None when we move to newgraph...

  • Bringing up the recordgraph now generates a lot of GTK warnings that wasn't there before:

(pytrainer:871586): Gtk-WARNING **: 10:54:04.630: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.630: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.630: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-WARNING **: 10:54:04.664: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.664: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.664: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-WARNING **: 10:54:04.692: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.692: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.692: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-WARNING **: 10:54:04.720: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.720: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.720: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.720: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.721: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.721: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-WARNING **: 10:54:04.749: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.749: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.749: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-WARNING **: 10:54:04.776: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-WARNING **: 10:54:04.776: Attempting to add a widget with type GtkTable to a container of type GtkFrame, but the widget is already inside a container of type GtkFrame, please remove the widget from its existing container first.

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

(pytrainer:871586): Gtk-CRITICAL **: 10:54:04.776: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

Comment on lines -557 to +554
self.hbox30.show()
#Hide new graph details
self.graph_data_hbox.hide()
self.hboxGraphOptions.hide()
#Enable graph
self.record_vbox.set_sensitive(1)
self.drawarearecord.drawgraph(self.record_list,self.laps)
#Hide current drop down boxes
self.hbox30.hide()
Copy link
Member
@hjerning hjerning Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think hbox30 can be removed entirely, from what I understand it's the old graph mode.
Since hbox30 is still present in glade and toggled to show further down for activities without GPX data the two dropdowns with "Versus" in between can be seen for such activities.

Both these lines should then be removed too:

self.hbox30.show()
#Hide new graph details

This hasn't worked in years, so no point in carrying the option and code.
@viiru- viiru- force-pushed the remove-graph-options branch from fb6debc to 8cd0cc8 Compare April 14, 2024 07:18
@hjerning hjerning assigned viiru- and unassigned hjerning Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0