First GTK program with GNU Smalltalk

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

First GTK program with GNU Smalltalk

MrGwen
Hi,

In this short tutorial I will explain how to create a simple GTK
application with GNU Smalltalk. First of all we download the gtk-tools
package which contains improvements for Gtk.

git clone [hidden email]:gst-objectspaces/gtk-tools.git
cd gtk-tools
./package.sh

Now we can create a first Gtk application; first we load the gtk-tools
package

" Create a temporary variable "

   | window |

   PackageLoader fileInPackage: 'GtkTools'.


" This is a simple program that creates a window with a button and a
status bar: "


" Create a new window "

     window := GtkTools GtkMainWindow new.

" Set a button as the main widget, change the title and status bar "

     window
         centralWidget: (GTK.GtkButton labeled: 'Hello World');
         title: 'simple';
         statusMessage: 'GTK Tutorial';
         showAll. " Display me and my children "

" Launch the Gtk event loop "

     GTK.Gtk main.

Cheers,
Gwen

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: First GTK program with GNU Smalltalk

Germán Arias
On mar, 2011-04-19 at 22:26 +0200, Gwenael Casaccio wrote:

> Hi,
>
> In this short tutorial I will explain how to create a simple GTK
> application with GNU Smalltalk. First of all we download the gtk-tools
> package which contains improvements for Gtk.
>
> git clone [hidden email]:gst-objectspaces/gtk-tools.git
> cd gtk-tools
> ./package.sh
>

Hi, I get the error:

german@german-desktop:~/Instalados$ git clone
[hidden email]:gst-objectspaces/gtk-tools.git
Initialized empty Git repository
in /home/german/Instalados/gtk-tools/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
fetch-pack from '[hidden email]:gst-objectspaces/gtk-tools.git'
failed.


_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: First GTK program with GNU Smalltalk

Paolo Bonzini-2
On 04/29/2011 03:12 AM, Germán Arias wrote:
> german@german-desktop:~/Instalados$ git clone
> [hidden email]:gst-objectspaces/gtk-tools.git

Gwen included by mistake his private cloning URL.  You should do instead

git clone git://gitorious.org/gst-objectspaces/gtk-tools.git

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk