Skip to content

Instantly share code, notes, and snippets.

@benkaiser
Created December 29, 2013 18:22
Show Gist options
  • Select an option

  • Save benkaiser/8173144 to your computer and use it in GitHub Desktop.

Select an option

Save benkaiser/8173144 to your computer and use it in GitHub Desktop.
Marble Python Hello World example
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