Changes between Version 17 and Version 18 of Help/Plugin/Scripting/Python
- Timestamp:
- 2022-12-26T23:49:56+01:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Plugin/Scripting/Python
v17 v18 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: … … 137 137 138 138 if not(selected_ways) or len(selected_ways)>1: 139 JOptionPane.showMessageDialog(MainApplication. parent, "Please select a single way that connects to a roundabout")139 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), "Please select a single way that connects to a roundabout") 140 140 else: 141 141 for way in selected_ways: 142 142 if way.get('oneway') in ['yes', '-1']: 143 JOptionPane.showMessageDialog(MainApplication. parent, "This way has oneway tag set")143 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), "This way has oneway tag set") 144 144 elif way.get('junction') in ['roundabout']: 145 JOptionPane.showMessageDialog(MainApplication. parent, "This way is part of a roundabout")145 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), "This way is part of a roundabout") 146 146 else: 147 147 node_before = None … … 213 213 214 214 if not(common_node) or ((parentway.isClosed() and common_node_becomes_node_before==None)): 215 JOptionPane.showMessageDialog(MainApplication. parent, "Please select a way that connects to a roundabout")215 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), "Please select a way that connects to a roundabout") 216 216 else: 217 217 commandsList = []