Created
December 29, 2013 18:22
-
-
Save benkaiser/8173144 to your computer and use it in GitHub Desktop.
Marble Python Hello World example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt4.QtGui import * | |
| from PyKDE4.marble import * | |
| import sys | |
| def main(): | |
| # Initialize QApplication | |
| app = QApplication(sys.argv) | |
| # Create a Marble QWidget | |
| m = Marble.MarbleWidget() | |
| # Load the OpenStreeMap map | |
| m.setMapThemeId("earth/openstreetmap/openstreetmap.dgml") | |
| # Show the window | |
| m.show() | |
| # Run the app | |
| app.exec_() | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment