Re: [Pharo-project] Is there a simple example of how to create a GUI form in Pharo or Squeak?
Hi, two good sources of information on GUI building are http://www.pharocasts.com/2011/02/pharo-gui-with-polymorph.html?utm_source=B... http://book.pharo-project.org/book/LanguageAndLibraries/GUI/?_s=yllsSvKBo5cv... They're not that hard to find (if you are aware of the Collab book and the pharocasts). You might want to check out Glamour also, http://www.themoosebook.org/book/internals/glamour Fernando On Mon, Dec 24, 2012 at 11:22 AM, Frank Church <vfclists@gmail.com> wrote:
Is there a simple example of how to create a GUI form in Pharo or Squeak?
I want to accomplish a simple task with a form:
1. Create a form with a button and edit control and 2 text areas.
2. Enter a value into the edit control.
3. Run a database query using the value in the edit control as a parameter and return the results in text area 1
4. Run a shell script using the value in the edit control as a parameter and return the results in text area 2
I have OpenDBX running successfully and I don't think using OSProcess and CommandShell will be that difficult.
Creating the form is the part I don't know how to accomplish.
I have done some searching and there seems to be a surprising dearth of info on how to create a simple GUI from scratch using Pharo or Squeak.
-- Frank Church
======================= http://devblog.brahmancreations.com
On 25 December 2012 14:48, Fernando Olivero <fernando.olivero@usi.ch> wrote:
Hi, two good sources of information on GUI building are
http://www.pharocasts.com/2011/02/pharo-gui-with-polymorph.html?utm_source=B...
http://book.pharo-project.org/book/LanguageAndLibraries/GUI/?_s=yllsSvKBo5cv...
They're not that hard to find (if you are aware of the Collab book and the pharocasts).
You might want to check out Glamour also, http://www.themoosebook.org/book/internals/glamour
Fernando
I am working my way through the Polymorph GUI demo and I at around 2:34 notice that the examples are not in my image. The demo is over 2 years old so the example packages may have been removed from recent versions of Pharo. Is there some way to get them back? Is there also some way to search the repositories to see if they contain package from Smalltalk?
On Mon, Dec 24, 2012 at 11:22 AM, Frank Church <vfclists@gmail.com> wrote:
Is there a simple example of how to create a GUI form in Pharo or Squeak?
I want to accomplish a simple task with a form:
1. Create a form with a button and edit control and 2 text areas.
2. Enter a value into the edit control.
3. Run a database query using the value in the edit control as a parameter and return the results in text area 1
4. Run a shell script using the value in the edit control as a parameter and return the results in text area 2
I have OpenDBX running successfully and I don't think using OSProcess and CommandShell will be that difficult.
Creating the form is the part I don't know how to accomplish.
I have done some searching and there seems to be a surprising dearth of info on how to create a simple GUI from scratch using Pharo or Squeak.
-- Frank Church
======================= http://devblog.brahmancreations.com
-- Frank Church ======================= http://devblog.brahmancreations.com
participants (2)
-
Fernando Olivero -
Frank Church