Changes between Version 7 and Version 8 of Nl:Help/Plugin/Scripting/Python
- Timestamp:
- 2022-12-29T16:07:59+01:00 (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nl:Help/Plugin/Scripting/Python
v7 v8 1 [[TranslatedPages(revision=1 7)]]1 [[TranslatedPages(revision=18)]] 2 2 3 3 = Plug-in -> Scripting -> Python = … … 24 24 25 25 if not(selected_ways) or len(selected_ways)>1: 26 JOptionPane.showMessageDialog(MainApplication. parent,26 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 27 27 "Please select a single way that connects to a roundabout") 28 28 else: 29 29 for way in selected_ways: 30 30 if way.get('oneway') in ['yes', '-1']: 31 JOptionPane.showMessageDialog(MainApplication. parent, "This way has oneway tag set")31 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), "This way has oneway tag set") 32 32 else: 33 33 node_before = None … … 73 73 adjacent_node_to_split_on = way.getNodes()[-1] 74 74 if not(common_node) or common_node_becomes_node_before==None: 75 JOptionPane.showMessageDialog(MainApplication. parent,75 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), 76 76 "Please select a way that connects to a roundabout") 77 77 else: