Changeset 0663a957 in sasview for src/sas/sasgui/guiframe/local_perspectives
- Timestamp:
- Sep 15, 2016 8:33:57 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c313c88
- Parents:
- 1729738
- git-author:
- Lewis O'Driscoll <lewis.o'driscoll@…> (08/12/16 04:52:27)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r1729738 r0663a957 592 592 item_list = self.parent.get_current_context_menu(self) 593 593 if (not item_list == None) and (not len(item_list) == 0): 594 # Note: reusing menu ids in submenu. This code works because595 # IdItems is set up as a lazy iterator returning each id in596 # sequence, creating new ids as needed so it never runs out.597 # zip() is set up to stop when any iterator is empty, so it598 # only asks for the number of ids in item_list.599 594 for item, wx_id in zip(item_list, [ids.next() for i in range(len(item_list))]): 600 595
Note: See TracChangeset
for help on using the changeset viewer.