Changeset a78890d in sasview
- Timestamp:
- Aug 12, 2016 4:52:27 AM (8 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b636c0ba, efb482a
- Parents:
- 2204dc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r2204dc5 ra78890d 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.