Changes between Version 6 and Version 7 of Help/Plugin/Scripting


Ignore:
Timestamp:
2011-08-06T12:22:10+02:00 (14 years ago)
Author:
Polyglot
Comment:

made python example more 'Pythonic' and added link to more examples

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/Scripting

    v6 v7  
    9292
    9393def getMapView():
    94         if Main.main == None:
    95                 return None
    96         if Main.main.map == None:
    97                 return None
    98         return Main.main.map.mapView
    99 
     94    if Main.main and Main.main.map:
     95        return Main.main.map.mapView
     96    else:
     97        return None
    10098
    10199numlayers = 0
     
    107105}}}
    108106
     107Here are some more examples:
     108
     109[wiki:Help/Plugin/Scripting/Python]
     110
    109111----
    110112Back to [wiki:Help/Plugins Plugin Help][[BR]]