Skip to content

Instantly share code, notes, and snippets.

View lacolaco's full-sized avatar

Suguru Inatomi lacolaco

View GitHub Profile
@lacolaco
lacolaco / timer.py
Created October 13, 2012 08:40
Timer application by Python3.2.3 with PyQt4
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'timer.ui'
#
# Created: Sat Oct 13 17:10:09 2012
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
public class MainActivity extends BindingActivity // Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_main);
setAndBindRootView(R.layout.activity_main, new MainActivityModel());
}
public class MainActivityModel
{
public StringObservable message = new StringObservable();
public Command hello = new Command()
{
@Override
public void Invoke(View arg0, Object... arg1)
{
public class MainActivityModel
{
public StringObservable message = new StringObservable();
public MainActivityModel()
{
message.set("");
}
public class MainActivityModel
{
public StringObservable message = new StringObservable();
public MainActivityModel()
{
message.set("");
}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:binding="http://www.gueei.com/android-binding/"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:binding="http://www.gueei.com/android-binding/"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
binding:text="message"
public class BindingSampleApp extends Application
{
@Override
public void onCreate()
{
super.onCreate();
}
}
public class BindingSampleApp extends Application
{
@Override
public void onCreate()
{
super.onCreate();
Binder.init(this);
}
}
public class MainActivity extends BindingActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
EventAggregator eventAggregator = EventAggregator.getInstance(this);