Rename main script to avoid camelCase
authorThomas Perl <m@thp.io>
Fri, 14 Oct 2011 10:14:43 +0000 (12:14 +0200)
committerThomas Perl <m@thp.io>
Fri, 14 Oct 2011 10:14:43 +0000 (12:14 +0200)
gotoVienna-qml [deleted file]
gotovienna-qml [new file with mode: 0755]

diff --git a/gotoVienna-qml b/gotoVienna-qml
deleted file mode 100755 (executable)
index aeb935f..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/env/python
-
-from PySide import QtCore, QtGui, QtDeclarative
-from gotovienna.utils import *
-from gotovienna.realtime import *
-
-import urllib2
-import os
-import sys
-
-
-class Gui(QtCore.QObject):
-    @QtCore.Slot(str, str)
-    def search(self, line, station):
-        line = line.upper()
-        station = station.decode('utf-8')
-        print line, station
-        
-        itip = ITipParser()
-        print itip.lines
-        if not line in itip.lines:
-            return "Invalid line"
-        
-        try:
-            stations = sorted(itip.get_stations(line).items())
-            print stations
-            headers, stations = zip(*stations)
-            print headers
-            print stations
-            details = [(direction, name, url) for direction, stops in stations
-                        for name, url in stops if match_station(station, name)]
-            print details
-        except urllib2.URLError as e:
-            print e.message
-            return e.message
-
-if __name__ == '__main__':
-    app = QtGui.QApplication(sys.argv)
-
-    view = QtDeclarative.QDeclarativeView()
-
-    # instantiate the Python object
-    itip = Gui()
-
-    # expose the object to QML
-    context = view.rootContext()
-    context.setContextProperty("itip", itip)
-
-    view.setSource(os.path.join(os.path.dirname(__file__), 'qml/main.qml'))
-    view.showFullScreen()
-
-    sys.exit(app.exec_())
-
diff --git a/gotovienna-qml b/gotovienna-qml
new file mode 100755 (executable)
index 0000000..aeb935f
--- /dev/null
@@ -0,0 +1,53 @@
+#!/usr/env/python
+
+from PySide import QtCore, QtGui, QtDeclarative
+from gotovienna.utils import *
+from gotovienna.realtime import *
+
+import urllib2
+import os
+import sys
+
+
+class Gui(QtCore.QObject):
+    @QtCore.Slot(str, str)
+    def search(self, line, station):
+        line = line.upper()
+        station = station.decode('utf-8')
+        print line, station
+        
+        itip = ITipParser()
+        print itip.lines
+        if not line in itip.lines:
+            return "Invalid line"
+        
+        try:
+            stations = sorted(itip.get_stations(line).items())
+            print stations
+            headers, stations = zip(*stations)
+            print headers
+            print stations
+            details = [(direction, name, url) for direction, stops in stations
+                        for name, url in stops if match_station(station, name)]
+            print details
+        except urllib2.URLError as e:
+            print e.message
+            return e.message
+
+if __name__ == '__main__':
+    app = QtGui.QApplication(sys.argv)
+
+    view = QtDeclarative.QDeclarativeView()
+
+    # instantiate the Python object
+    itip = Gui()
+
+    # expose the object to QML
+    context = view.rootContext()
+    context.setContextProperty("itip", itip)
+
+    view.setSource(os.path.join(os.path.dirname(__file__), 'qml/main.qml'))
+    view.showFullScreen()
+
+    sys.exit(app.exec_())
+