Author Topic: GUI Page?  (Read 1228 times)

musonio

  • Guest
Re: GUI Page?
« Reply #15 on: August 27, 2010, 12:36:01 PM »
that's the advantage of gtkdialog for ignorants like myself: you don't need to learn any language.
Only the first one is hard - after that, it's a snap.
Provided that you don't have two toddlers shouting around the house and two jobs. ;D

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: GUI Page?
« Reply #16 on: August 27, 2010, 12:37:09 PM »
that's the advantage of gtkdialog for ignorants like myself: you don't need to learn any language.
Only the first one is hard - after that, it's a snap.

I'm with musonio on this as I mentioned earlier ......  seriously language challenged   ;D

I will have to investigate gtkdialog further .....  but again most of what I have seen so far concerns passing ONE output from a page and not many.

So a lot of reading to do ........

regards.

genomega

  • Guest
Re: GUI Page?
« Reply #17 on: August 27, 2010, 07:40:08 PM »
qt creator

+1

Offline Mark342

  • Sr. Member
  • ****
  • Posts: 334
Re: GUI Page?
« Reply #18 on: August 27, 2010, 11:39:46 PM »
Update-notifier in the repositiory uses gtkdialog for its Configuration dialog.
It has 3 checkboxes and two comboboxes and the states of all of them have to be passed to the script.
You might want to take a look at it. ;)

I still recommend using a real programming language to make a GUI.
Perl is often called "Shell scripting on steroids" and rightfully so because Perl is very similar to shell scripting.
Some similarities:
Code: [Select]
#!/bin/bash

variable='Hello'
echo $variable
newvar=`echo $variable | grep -o 'H'`
echo $variable
echo $newvar
Code: [Select]
#!/usr/bin/perl

$variable='Hello';

#unlike shell scripts, in perl backticks are always used when you want to execute a command line command
`echo $variable`;

$newvar=`echo $variable | grep -o 'H'`;

#print functions the same as the command line echo, but without the auto \n (so somewhat similar to printf, but perl has its own printf which is more akin to it)
print "$variable\n";
print "$newvar\n";

Gtk has bindings for perl, so you can use Gtk in perl. :) The PCC and utilities are written in perl.
All you really need to do is study the syntax differences in if, while,else,for,for in  code blocks. (foreach is perl equivalent of for in)
And even then, the change is always trivial. (one less pair of parenthesis, () instead of [])
« Last Edit: August 28, 2010, 12:22:15 AM by Mark342 »
Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: GUI Page?
« Reply #19 on: August 28, 2010, 02:35:47 AM »
Update-notifier in the repositiory uses gtkdialog for its Configuration dialog.
It has 3 checkboxes and two comboboxes and the states of all of them have to be passed to the script.
You might want to take a look at it. ;)

Thank you for that info .....  I will install it and have a look.   ;)