WideStudio Logo
WideStudio
Programming Guide
WideStudio Index
Table of contents


Sample:1 (Hello World)

Here, you create a project,an application window and event procedures. The following is a rudimentary sample which displays "hello" by pushing the button of the window,

The source code is ws/samples/Ruby/hello/newproject.prj. You can load the project and build by the application builder.



[A view of the application window]

#----------------------------------------------------------
#Function for the event procedure
#----------------------------------------------------------
import mpfc

def btn(object):
  object.setProperty("labelString","hello");
  return
mpfc.WSGFfunctionRegister("btn",btn)



[Executing the application]


Document Release 3.20 for WideStudio ver 3.20, Oct 2002


WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2002 Last modified: Oct 27, 2002