Commits

Matthew Turk committed 3b4ae64

Renaming gets it picked up by Kivy without any additional lines.

  • Participants
  • Parent commits e05144e

Comments (0)

Files changed (2)

File vr_widget.kv

-#:kivy 1.0
-#:import kivy kivy
-#:import win kivy.core.window
-
-FloatLayout:
-
-<VolumeRendering>:
-    id: vr_widget
-    on_size: self.center = win.Window.center
-    size: 640, 640
-    size_hint: None, None
-    GridLayout:
-        center: 0, 0
-        size: 640, 640
-        id: layout
-        cols: 2
-        padding: 0
-        Slider:
-            id: 'width_slider'
-            orientation: 'vertical'
-            size: 128, 512
-            size_hint_x: None
-            size_hint_y: None
-            on_value: vr_widget.g_width = self.value_normalized
-        Image:
-            size: 512, 512
-            source: '/home/mturk/yt_vr_small.png'
-            size_hint_x: None
-            size_hint_y: None
-        Button:
-            size_hint_x: 0.5
-            size_hint_y: 0.6
-            text: 'Render'
-            on_release: vr_widget.render()
-        Slider:
-            id: 'val_slider'
-            orientation: 'horizontal'
-            size: 512, 128
-            size_hint_x: None
-            size_hint_y: None
-            on_value: vr_widget.g_center = self.value_normalized
+#:kivy 1.0
+#:import kivy kivy
+#:import win kivy.core.window
+
+FloatLayout:
+
+<VolumeRendering>:
+    id: vr_widget
+    on_size: self.center = win.Window.center
+    size: 640, 640
+    size_hint: None, None
+    GridLayout:
+        center: 0, 0
+        size: 640, 640
+        id: layout
+        cols: 2
+        padding: 0
+        Slider:
+            id: 'width_slider'
+            orientation: 'vertical'
+            size: 128, 512
+            size_hint_x: None
+            size_hint_y: None
+            on_value: vr_widget.g_width = self.value_normalized
+        Image:
+            size: 512, 512
+            source: '/home/mturk/yt_vr_small.png'
+            size_hint_x: None
+            size_hint_y: None
+        Button:
+            size_hint_x: 0.5
+            size_hint_y: 0.6
+            text: 'Render'
+            on_release: vr_widget.render()
+        Slider:
+            id: 'val_slider'
+            orientation: 'horizontal'
+            size: 512, 128
+            size_hint_x: None
+            size_hint_y: None
+            on_value: vr_widget.g_center = self.value_normalized