Hi Rodolfo,

> I've seen that when changing to the sports tab in the profile window all the
> profile options are saved. The code can be find in the windowprofile.py
> file:
>
>
>     def on_switch_page(self,widget,pointer,frame):
>         #print widget, pointer, frame
>         if frame==2:
>             self.saveOptions()
>             sport_list = self._sport_service.get_all_sports()
>
> Can anybody give a reason for doing that? Can I just remove the saveOptions
> line?

I guess it is there just for historic purposes
(https://github.com/pytrainer/pytrainer/blob/master/pytrainer/gui/windowprofile.py#L158).
Although I would not invest much time in current graphical approach, I
miss an "apply" button in profile window to make changes effective
without closing the window.

Regarding if it can be removed, I see no argument against.

Regards,

David

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to