This file contains 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
sc_require('resources/todo_item'); | |
Todos.mainPage = SC.Page.design({ | |
field: SC.outlet('mainPane.newTodoField.field'), | |
mainPane: SC.MainPane.design({ | |
childViews: ['header', 'todosList', 'footer'], | |
//classNames: ['todoapp'], | |
defaultResponder: "Todos.statechart", |
This file contains 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
$theme: '.ace.todos'; | |
body { | |
-webkit-font-smoothing: antialiased; | |
text-rendering: optimizelegibility; | |
} | |
/* Fix for Chrome bug on accelerated panes */ | |
.sc-pane { | |
-webkit-transform: none; |
This file contains 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
sc_require('resources/todo_item'); | |
Todos.mainPage = SC.Page.design({ | |
field: SC.outlet('mainPane.newTodoField.field'), | |
mainPane: SC.MainPane.design({ | |
childViews: ['header', 'newTodoField', 'todosList', 'footer'], | |
defaultResponder: "Todos.statechart", | |
header: SC.ToolbarView.design({ |
This file contains 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
(kivy)ibis~/Development/kivy/kivy.org/ivpusic/tic-tac-toe/tic-tac-toe(master|✔) % python main.py | |
[INFO ] Kivy v1.8.0-dev | |
[INFO ] [Logger ] Record log in /Users/geojeff/.kivy/logs/kivy_13-05-31_0.txt | |
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s | |
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones | |
[INFO ] [Image ] Providers: img_imageio, img_tex, img_dds, img_pygame, img_pil, img_gif | |
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s | |
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s | |
[INFO ] [Factory ] 144 symbols loaded | |
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones |
This file contains 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 kivy.app import App | |
from kivy.properties import ObjectProperty | |
from kivy.properties import DictProperty | |
from kivy_statecharts.system.state import State | |
from kivy_statecharts.system.statechart import StatechartManager | |
from kivy.uix.screenmanager import ScreenManager | |
from kivy.uix.floatlayout import FloatLayout |
This file contains 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
#:kivy 1.0 | |
#:import kivy kivy | |
#:import win kivy.core.window | |
<cont>: | |
but: but | |
FloatLayout: | |
size:(600,600) | |
Button: |
This file contains 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
Traceback (most recent call last): | |
File "main.py", line 67, in <module> | |
TestApp().run() | |
File "/Users/geojeff/Development/kivy/contrib/kivy/kivy/app.py", line 576, in run | |
self.load_kv(filename=self.options.get('kv_file')) | |
File "/Users/geojeff/Development/kivy/contrib/kivy/kivy/app.py", line 399, in load_kv | |
root = Builder.load_file(filename) | |
File "/Users/geojeff/Development/kivy/contrib/kivy/kivy/lang.py", line 1310, in load_file | |
return self.load_string(data, **kwargs) | |
File "/Users/geojeff/Development/kivy/contrib/kivy/kivy/lang.py", line 1347, in load_string |
This file contains 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
Followed these instructions: https://coderwall.com/p/tptocq | |
ibis~/Development/sproutcore % rvm get stable 1 ↵ | |
Original installed RVM version: | |
rvm 1.10.2 by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.beginrescueend.com/] | |
Downloading RVM from wayneeseguin branch stable | |
% Total % Received % Xferd Average Speed Time Time Time Current |
This file contains 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
def scroll_after_add(self): | |
if not self.scrolling: | |
available_height = self.height | |
index = self._index | |
print 'index', index | |
print 'available_height', available_height | |
while available_height > 0: | |
item_view = self.adapter.get_view(index) |
This file contains 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
class RangeObservingList(ObservableList): | |
'''Adds range-observing intelligence to ObservableList''' | |
range_change = ObjectProperty(None) | |
def __init__(self, *largs): | |
super(RangeObservingList, self).__init__(*largs) | |
def __setitem__(self, key, value): | |
self.range_change = None |