Puppy 3:
http://dotpups.de/puppy3/dotpups/Progra ... ic-002.pup
Puppy 2:
http://dotpups.de/dotpups/Programming/Gtkbasic-002.pup
If the fileselectors do not work in Puppy 2, try the Puppy 3 dotpup, but I did not test this combination yet.
----------------------
http://noforum.de/files/wxbasic/gtkbasic/
ginsbasic is a modified version of Puppybasic with new inbuilt functions written in C, based on "gins" by Fabrix ( http://freeweb.lombardiacom.it/kirsoft/gins.html )
License:
GPL (gins) and LGPL (Puppybasic)
The archive includes source and binary.
Extract it, and type "make install" to copy ginsbasic to /usr/bin
Then type "make test" to run a simple example.
The example is "testgins.pb":
Code: Select all
#!/usr/bin/ginsbasic001
//-- load file and show the window
gins_glade("test.glade")
gins_main()
//-- manipulate a widget, e.g. move the window
gins_set("window1" , "10" , "10" , "<uposition>")
//-- get information about a widget
a = gins_get("button1" , "label" , "<str>")
print a
//-- mainloop with eventhandling
while 1
widget , event , pdata = gins_event()
if widget != Nothing then
print widget
print event
print pdata
if event = "GDK_DELETE" then
gins_exit()
end
end if
end if
xwin_usleep(10000)
wend
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.0.3 on Sat May 5 18:12:54 2007 by root@puppypc-->
<glade-interface>
<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<child>
<widget class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="label" translatable="yes">button</property>
</widget>
</child>
</widget>
</child>
</widget>
</glade-interface>
This should make development pretty easy.<property name="visible">True</property>
I used the sourcecode of Puppybasic 2.5 and the (inofficial) gins 0.9.1, see:
http://www.puppyos.net/forum/azbb.php?1172392169;4
I also activated again all events, that were disabled by BradChuck.
As gins now is a set of inbuilt C-functions in Puppybasic, it is more responsive than communicating using shell-commands.
So the eventhandling should also work on old computers. Please tell me, if this is correct.
Mark