Changes between Version 7 and Version 8 of Nl:Help/Plugin/Scripting/Python


Ignore:
Timestamp:
2022-12-29T16:07:59+01:00 (18 months ago)
Author:
DiGro
Comment:

adjusted to revision 18

Legend:

Unmodified
Added
Removed
Modified
  • Nl:Help/Plugin/Scripting/Python

    v7 v8  
    1 [[TranslatedPages(revision=17)]]
     1[[TranslatedPages(revision=18)]]
    22
    33= Plug-in -> Scripting -> Python =
     
    2424
    2525    if not(selected_ways) or len(selected_ways)>1:
    26         JOptionPane.showMessageDialog(MainApplication.parent,
     26        JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    2727                                         "Please select a single way that connects to a roundabout")
    2828    else:
    2929        for way in selected_ways:
    3030            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")
    3232            else:
    3333                node_before = None
     
    7373                            adjacent_node_to_split_on = way.getNodes()[-1]
    7474                if not(common_node) or common_node_becomes_node_before==None:
    75                     JOptionPane.showMessageDialog(MainApplication.parent,
     75                    JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    7676                                               "Please select a way that connects to a roundabout")
    7777                else: