Re: Is there anyone out there?

2009-05-14 Thread Cowley Harris
>> 1) Is this project still going?  Doesn't seem to be much (any) emails
>> coming through on the mailing list.

>That strikes me as a rather odd observation.  A quick look at the
>mailing list archives ( http://mail.gnome.org/archives/gtk-perl-list/ )
>shows a steady stream of messages every month.

When I tried to review the archives I got a 404 error. I used the link
from the Documents page, not the one on the FAQs page.

>Not only is there steady traffic, there are questions being asked and
>answered by a healthy mix of new-comers and old-hands.  I've long held
>this mailing list to be an excellent example of an open source community
>in action.  There are a few key people who really set the tone nicely.


My rationale for making the observation was  that I signed up to the
list a few days ago and didn't get a single email from the list. I was
comparing that to debian mailing lists where I'm getting emails every
quarter hour.
I understand that that it is volunteer based project and in a stable
state, but I've just recently invested a lot of time learning what
turned out to be a dead project and would rather not do the same
again. At the same time I wanted to start learning the API and
migrating to Gtk2 as soon as possible.

That said, I asked if anybody was out there and now I got the answer.

>This is an active helpful group and you clearly have not reviewed the 
>resources adequately.

Actually I believe I reviewed the resources in depth, which is was
what also prompted the question.

For some examples, there doesn't seem to be any recent tutorials
(latest I found with a date was 2006).  The main English version for
Gtk2-perl is half completed and is still in alpha.  The "search the
list archives link" 404s on me. (The one on the documentation page,
not the one I just found on the FAQ page). On the main page, the most
recent news leads to svn, while at svn.gnome.org you have the message
"All content on this site is obsolete. "

I'm just pointing out that the sourceforge site has a ghost-town feel
to it.  And as it turns up first on a google search, it could be
off-putting to people who may be migrating from Perl-Tk who are
evaluating the alternatives. I think as I have "new eyes" I'm going to
see the stuff you may be oblivious too.

I'm also offering to help out with the documentation as per the Intro.

Cheers.

Harris
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Is there anyone out there?

2009-05-14 Thread Dave Howorth
Cowley Harris wrote:
> I'm just pointing out that the sourceforge site has a ghost-town feel
> to it.  And as it turns up first on a google search, it could be
> off-putting to people who may be migrating from Perl-Tk who are
> evaluating the alternatives. I think as I have "new eyes" I'm going to
> see the stuff you may be oblivious too.

I'm just an occasional user and initially I had many of the same
reactions you did. But the group has been very helpful and now I've
climbed at least part way up the learning curve. Now you're subscribed
to the list you'll soon see the effort that is put into maintenance and
enhancements.

As well as the gtk-perl documentation, you will need to become familiar
with the C documentation, because a lot of the perl docs don't repeat
info that is already in the C docs. Start with the doc links at
.

Also very helpful is the Python documentation, e.g.
 which is more extensive and
generally fairly easy to understand in a perl context.

> I'm also offering to help out with the documentation as per the Intro.

If there are broken links on the sourceforge site, I'm sure patches
would be welcome, or any other improvements you can suggest.

Cheers, Dave
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Is there anyone out there?

2009-05-14 Thread muppet

Cowley Harris wrote:
>>> 1) Is this project still going?  Doesn't seem to be much (any) emails
>>> coming through on the mailing list.
>
>>That strikes me as a rather odd observation.  A quick look at the
>>mailing list archives ( http://mail.gnome.org/archives/gtk-perl-list/ )
>>shows a steady stream of messages every month.
>
> When I tried to review the archives I got a 404 error. I used the link
> from the Documents page, not the one on the FAQs page.

Oh, dear --- looks like markmail changed the link format.

http://perl.markmail.org/search/#query:list%3Aorg.gnome.gtk-perl-list

is what you want, i'll get that updated when i get home this evening.  Thanks
for pointing that out.


> I understand that that it is volunteer based project and in a stable
> state, but I've just recently invested a lot of time learning what
> turned out to be a dead project and would rather not do the same
> again. At the same time I wanted to start learning the API and
> migrating to Gtk2 as soon as possible.

I think a difference between Tk and Gtk2 is that Gtk2 is based on a modern and
active upstream, while Tk is long stable and, well, kinda ugly by comparison.


> For some examples, there doesn't seem to be any recent tutorials
> (latest I found with a date was 2006).  The main English version for
> Gtk2-perl is half completed and is still in alpha.  The "search the
> list archives link" 404s on me. (The one on the documentation page,
> not the one I just found on the FAQ page). On the main page, the most
> recent news leads to svn, while at svn.gnome.org you have the message
> "All content on this site is obsolete. "

You have to admit, the gnome project's switch to git is practically on the
heels of their switch to subversion.  It took us an embarrassingly long time
to get away from sourceforge cvs.



> I'm just pointing out that the sourceforge site has a ghost-town feel
> to it.  And as it turns up first on a google search, it could be
> off-putting to people who may be migrating from Perl-Tk who are
> evaluating the alternatives. I think as I have "new eyes" I'm going to
> see the stuff you may be oblivious too.

I think you're right, honestly.  We should knock down the cobwebs.  Please
report any broken links here.


> I'm also offering to help out with the documentation as per the Intro.

Excellent.  Patches here.  Start anywhere you like.



-- 
muppet 

___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Can't install on OSX Tiger

2009-05-14 Thread Brian McKee
On Wed, May 13, 2009 at 1:10 AM, Brian Manning  wrote:
> On Tue, May 12, 2009 at 8:08 PM, Brian McKee  wrote:
>> I would like to install gtk2 on Tiger, but when I do so thru CPAN it
>> fails the vast majority of the tests.
> The link you posted in your previous e-mail recommends "Imendio" over
> using MacPorts.  Which way are you trying to do it, via MacPorts or
> Imendio?  How are you fitting Gtk2-Perl from CPAN into all of this?

Thanks for your reply.

I chose the Imendio package because I wanted a 'native' app rather
than using X11

As I understood it that Imendio package got me Gtk2, but not the Perl
bindings to it.

I was trying to use CPAN to get those Perl bits.

Here's all the output - all the steps previous to this worked fine.

http://pastebin.com/m21548cdc

Forcing the install didn't seem like the right answer  to me.

All comments appreicated,
Brian
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Can't install on OSX Tiger

2009-05-14 Thread Brian Manning
On Thu, May 14, 2009 at 3:41 PM, Brian McKee  wrote:
> On Wed, May 13, 2009 at 1:10 AM, Brian Manning  wrote:
>> The link you posted in your previous e-mail recommends "Imendio" over
>> using MacPorts.  Which way are you trying to do it, via MacPorts or
>> Imendio?  How are you fitting Gtk2-Perl from CPAN into all of this?
>
> I chose the Imendio package because I wanted a 'native' app rather
> than using X11

Are you '/Users/rhult'?  I'm guessing not. Lots of test failures are
because files in that user's directory do not exist on your machine.

> As I understood it that Imendio package got me Gtk2, but not the Perl
> bindings to it.
>
> I was trying to use CPAN to get those Perl bits.

One thing about using Apple's Perl; if Apple decides to upgrade it,
things could break and there would be nothing for you to do but
recompile.  For this reason I prefer Perl from MacPorts.  Using
MacPorts also got me Perl 5.10 instead of Perl 5.8 (by hacking up the
Portfile for perl5 IIRC).

Thanks,

Brian
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Is there anyone out there?

2009-05-14 Thread muppet


On May 14, 2009, at 5:49 PM, muppet wrote:


Cowley Harris wrote:


When I tried to review the archives I got a 404 error. I used the  
link

from the Documents page, not the one on the FAQs page.


Oh, dear --- looks like markmail changed the link format.


Stranger -- it looks like the file somehow got corrupted, with the  
"ht" in "http" for that link changing to some strange non-ascii junk.


At any rate, it's fixed, now.


--
The Master in the art of living makes little distinction between his  
work and his play, his labor and his leisure, his mind and his body,  
his education and his recreation, his love and his religion. He hardly  
knows which is which. He simply pursues his vision of excellence in  
whatever he does, leaving others to decide whether he is working or  
playing. To him he is always doing both.


  -- Zen Philosophy



___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Function to return Gtk2::Table

2009-05-14 Thread Peter E Dennis
Hi All,

I am trying to create a function that when a button is clicked it will
create a table of widgets laid out in 2 rows x 9 columns and add it to
a vbox.

At the moment I am trying to do the following:

#!/usr/bin/perl
use Gtk2 -init;
use Gtk2::GladeXML;

# Read in glade file with gui
$gladexml = Gtk2::GladeXML->new('sscce.glade');

# Get main window vbox
$vbox1 = $gladexml->get_widget('vbox1');

# Get vbox to hold created tables
$vbox2 = $gladexml->get_widget('vbox2');

# Create a table of widgets
$table = &ret_table();

# Show the widgets?
$vbox2->pack_start_defaults($table); #get undefined error here...
$vbox2->show_all;
$vbox1->pack_start_defaults($vbox2);
$vbox1->show_all;

# Get main window from widget tree.
$main_window = $gladexml->get_widget('window1');

# Quit when user clicks on the close button/alt-f4 etc.
$main_window->signal_connect (destroy => sub { Gtk2->main_quit; });

# Maximise window
$main_window->maximize;

# Run main loop.
Gtk2->main;


sub ret_table
{
my $table = Gtk2::Table->new(2,9,FALSE);

# Title Row
my $lbl_num = Gtk2::Label->new("Num");
my $lbl_time = Gtk2::Label->new("Time/Session");
my $lbl_objectives = Gtk2::Label->new("Objectives/Learning Outcomes");
my $lbl_tasks = Gtk2::Label->new("Activities/Tasks/Content");
my $lbl_resources = Gtk2::Label->new("Resources");

my $tcol_sep1 = Gtk2::VSeparator->new;
my $tcol_sep2 = Gtk2::VSeparator->new;
my $tcol_sep3 = Gtk2::VSeparator->new;
my $tcol_sep4 = Gtk2::VSeparator->new;

# Entry Row
my $chk_num = Gtk2::CheckButton->new("1.");
my $e_time = Gtk2::Entry->new;
my $txtv_objectives = Gtk2::TextView->new;
my $txtv_tasks = Gtk2::TextView->new;
my $txtv_resources = Gtk2::TextView->new;

my $rcol_sep1 = Gtk2::VSeparator->new;
my $rcol_sep2 = Gtk2::VSeparator->new;
my $rcol_sep3 = Gtk2::VSeparator->new;
my $rcol_sep4 = Gtk2::VSeparator->new;

# Layout title row
$table->attach_defaults($lbl_num, 0, 1, 0, 1);
$table->attach_defaults($tcol_sep1, 1, 2, 0, 1);
$table->attach_defaults($lbl_time, 2, 3, 0, 1);
$table->attach_defaults($tcol_sep2, 3, 4, 0, 1);
$table->attach_defaults($lbl_objectives, 4, 5, 0, 1);
$table->attach_defaults($tcol_sep3, 5, 6, 0, 1);
$table->attach_defaults($lbl_tasks, 6, 7, 0, 1);
$table->attach_defaults($tcol_sep4, 7, 8, 0, 1);
$table->attach_defaults($lbl_resources, 8, 9, 0, 1);

# Layout entry row
$table->attach_defaults($chk_num, 0, 1, 0, 1);
$table->attach_defaults($rcol_sep1, 1, 2, 0, 1);
$table->attach_defaults($e_time, 2, 3, 0, 1);
$table->attach_defaults($rcol_sep2, 3, 4, 0, 1);
$table->attach_defaults($txtv_objectives, 4, 5, 0, 1);
$table->attach_defaults($rcol_sep3, 5, 6, 0, 1);
$table->attach_defaults($txtv_tasks, 6, 7, 0, 1);
$table->attach_defaults($rcol_sep4, 7, 8, 0, 1);
$table->attach_defaults($txtv_resources, 8, 9, 0, 1);

return $table;
}

However at the moment I get the following error:
Can't call method "pack_start_defaults" on an undefined value at
./main.pl line 18.

This is the line:
$vbox2->pack_start_defaults($table); # get undefined error here.

Is the table not being defined or is it the vbox?

Am I going the right way about this?

Many thanks,

Peter.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Function to return Gtk2::Table

2009-05-14 Thread Ryan Niebur
can you please provide your sscce.glade file?

On Fri, May 15, 2009 at 02:42:52PM +1000, Peter E Dennis wrote:
> Hi All,
> 
> I am trying to create a function that when a button is clicked it will
> create a table of widgets laid out in 2 rows x 9 columns and add it to
> a vbox.
> 
> At the moment I am trying to do the following:
> 
> #!/usr/bin/perl
> use Gtk2 -init;
> use Gtk2::GladeXML;
> 
> # Read in glade file with gui
> $gladexml = Gtk2::GladeXML->new('sscce.glade');
> 
> # Get main window vbox
> $vbox1 = $gladexml->get_widget('vbox1');
> 
> # Get vbox to hold created tables
> $vbox2 = $gladexml->get_widget('vbox2');
> 
> # Create a table of widgets
> $table = &ret_table();
> 
> # Show the widgets?
> $vbox2->pack_start_defaults($table); #get undefined error here...
> $vbox2->show_all;
> $vbox1->pack_start_defaults($vbox2);
> $vbox1->show_all;
> 
> # Get main window from widget tree.
> $main_window = $gladexml->get_widget('window1');
> 
> # Quit when user clicks on the close button/alt-f4 etc.
> $main_window->signal_connect (destroy => sub { Gtk2->main_quit; });
> 
> # Maximise window
> $main_window->maximize;
> 
> # Run main loop.
> Gtk2->main;
> 
> 
> sub ret_table
> {
> my $table = Gtk2::Table->new(2,9,FALSE);
> 
> # Title Row
> my $lbl_num = Gtk2::Label->new("Num");
> my $lbl_time = Gtk2::Label->new("Time/Session");
> my $lbl_objectives = Gtk2::Label->new("Objectives/Learning Outcomes");
> my $lbl_tasks = Gtk2::Label->new("Activities/Tasks/Content");
> my $lbl_resources = Gtk2::Label->new("Resources");
> 
> my $tcol_sep1 = Gtk2::VSeparator->new;
> my $tcol_sep2 = Gtk2::VSeparator->new;
> my $tcol_sep3 = Gtk2::VSeparator->new;
> my $tcol_sep4 = Gtk2::VSeparator->new;
> 
> # Entry Row
> my $chk_num = Gtk2::CheckButton->new("1.");
> my $e_time = Gtk2::Entry->new;
> my $txtv_objectives = Gtk2::TextView->new;
> my $txtv_tasks = Gtk2::TextView->new;
> my $txtv_resources = Gtk2::TextView->new;
> 
> my $rcol_sep1 = Gtk2::VSeparator->new;
> my $rcol_sep2 = Gtk2::VSeparator->new;
> my $rcol_sep3 = Gtk2::VSeparator->new;
> my $rcol_sep4 = Gtk2::VSeparator->new;
> 
> # Layout title row
> $table->attach_defaults($lbl_num, 0, 1, 0, 1);
> $table->attach_defaults($tcol_sep1, 1, 2, 0, 1);
> $table->attach_defaults($lbl_time, 2, 3, 0, 1);
> $table->attach_defaults($tcol_sep2, 3, 4, 0, 1);
> $table->attach_defaults($lbl_objectives, 4, 5, 0, 1);
> $table->attach_defaults($tcol_sep3, 5, 6, 0, 1);
> $table->attach_defaults($lbl_tasks, 6, 7, 0, 1);
> $table->attach_defaults($tcol_sep4, 7, 8, 0, 1);
> $table->attach_defaults($lbl_resources, 8, 9, 0, 1);
> 
> # Layout entry row
> $table->attach_defaults($chk_num, 0, 1, 0, 1);
> $table->attach_defaults($rcol_sep1, 1, 2, 0, 1);
> $table->attach_defaults($e_time, 2, 3, 0, 1);
> $table->attach_defaults($rcol_sep2, 3, 4, 0, 1);
> $table->attach_defaults($txtv_objectives, 4, 5, 0, 1);
> $table->attach_defaults($rcol_sep3, 5, 6, 0, 1);
> $table->attach_defaults($txtv_tasks, 6, 7, 0, 1);
> $table->attach_defaults($rcol_sep4, 7, 8, 0, 1);
> $table->attach_defaults($txtv_resources, 8, 9, 0, 1);
> 
> return $table;
> }
> 
> However at the moment I get the following error:
> Can't call method "pack_start_defaults" on an undefined value at
> ./main.pl line 18.
> 
> This is the line:
> $vbox2->pack_start_defaults($table); # get undefined error here.
> 
> Is the table not being defined or is it the vbox?
> 
> Am I going the right way about this?
> 
> Many thanks,
> 
> Peter.
> ___
> gtk-perl-list mailing list
> gtk-perl-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list

-- 
_
Ryan Niebur
ryanrya...@gmail.com


signature.asc
Description: Digital signature
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Function to return Gtk2::Table

2009-05-14 Thread Peter E Dennis
> can you please provide your sscce.glade file?

Sure it is attached to this email.  Sorry wasn't sure if the list
accepted attachments or not.


sscce.glade
Description: application/glade
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Function to return Gtk2::Table

2009-05-14 Thread Ryan Niebur
On Fri, May 15, 2009 at 02:42:52PM +1000, Peter E Dennis wrote:
> 
> # Get vbox to hold created tables
> $vbox2 = $gladexml->get_widget('vbox2');
> 

you don't have a vbox2 defined in your glade file, so that won't work.
looking at the code, since you are packing $vbox2 into $vbox1, perhaps
you meant to create a new vbox?
try something like this:

$vbox2 = Gtk2::VBox->new();

note that I haven't looked very much at this, tho this appears to at
least run.

-- 
_
Ryan Niebur
ryanrya...@gmail.com


signature.asc
Description: Digital signature
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Function to return Gtk2::Table

2009-05-14 Thread Peter E Dennis
>> # Get vbox to hold created tables
>> $vbox2 = $gladexml->get_widget('vbox2');
>>
>
> you don't have a vbox2 defined in your glade file, so that won't work.
> looking at the code, since you are packing $vbox2 into $vbox1, perhaps
> you meant to create a new vbox?
> try something like this:
>
> $vbox2 = Gtk2::VBox->new();
>
> note that I haven't looked very much at this, tho this appears to at
> least run.

Wow, that's embarrassing, must have forgotten to actually save the
glade file after adding vbox2.  Apologies for wasting your time.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list