Sponsored Content
Full Discussion: gtk2-perl load error help
Special Forums UNIX Desktop Questions & Answers gtk2-perl load error help Post 302404265 by snyh on Tuesday 16th of March 2010 05:45:17 AM
Old 03-16-2010
gtk2-perl load error help

I write this code.
It show the first dialog correctly.
but, no matter i modify the code(load module by use or require, or something i think maybe error)

it can't pop-up anymore.

and show this warning.

Thanks.
(I'm sorry for my English.)

Code:
        Tue Mar 16 17:24:36 2010
        Tue Mar 16 17:24:37 2010
        Tue Mar 16 17:24:38 2010
        Tue Mar 16 17:24:39 2010
        Tue Mar 16 17:24:40 2010
Something is very broken, couldn't lazy load Gtk2::Dialog at c:/camelbox/site/li
b/Glib.pm line 211.
Can't locate package Glib::Object::_Unregistered::AtkImplementorIface for @Gtk2:
:Dialog::ISA at c:/camelbox/site/lib/Glib.pm line 211.
Can't locate package Glib::Object::_Unregistered::AtkImplementorIface for @Gtk2:
:Dialog::ISA at c:/camelbox/site/lib/Glib.pm line 211.
        (in cleanup) Something is very broken, couldn't lazy load Gtk2::Dialog a
t c:/camelbox/site/lib/Glib.pm line 211.
        Tue Mar 16 17:24:41 2010
        Tue Mar 16 17:24:42 2010
Terminating on signal SIGINT(2)

Code:
use strict;
use Gtk2 qw/-init/;
my $count = 0;
while (1) {
	my $time = localtime;
	print $time,"\n";
	$count++;
	if ($count == 5) {
		$count = 0;
		if (my $pid = fork) {
		} else {
			my $dialog = Gtk2::Dialog->new(
				"title", undef, 'modal',
				'ok'=>'ok');
			$dialog->show;
			$dialog->run;
			$dialog->destroy;
			exit;
		}
	}
	sleep 1;
}



---------- Post updated at 05:45 PM ---------- Previous update was at 05:43 PM ----------

...
I'm very sorry for the "[code]".
this is my first post.
I will be careful in further.

Last edited by pludi; 03-16-2010 at 07:30 AM.. Reason: cleaned code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

2. Shell Programming and Scripting

Perl script to load text file into DB field

Hello, maybe this post is offtopic, sorry for the inconveniencies (maybe should be in the forum with questions about C, C++, Java, SQL...). I found examples about how to populate different fields from a text file (with MySQL, the LOAD DATA INFILE sentece), but not about how to load a complete... (2 Replies)
Discussion started by: aristegui
2 Replies

3. Programming

perl/Gtk2: issue with initializing Gtk2

hi everybody, currently i'm playing with perl and Gtk2. i've found a fairly old but nice looking example of a client/server application which is written in perl and Gtk2. the server part works perfect but i can't start the client part and keep getting following error message: $ ./client-gui.pl... (1 Reply)
Discussion started by: pseudocoder
1 Replies

4. Shell Programming and Scripting

How to load a hash with a file in Perl

Hi to everybody. I have a script in AWK with a revursive function, when I make the recursive call I'm loosing values in the local variables. So I'm trying to do the script in Perl, but I don't know Perl. I want to load several hashes with the data in a pipe separated file. In AWK it looks... (0 Replies)
Discussion started by: kcoder24
0 Replies

5. Shell Programming and Scripting

Perl script to load data by calling sqlldr

Hello all, I know this is Unix forum, but i also know that there are some experts here who can help me out with this situation; I am loading a data file into oracle table using Perl script by calling sqlldr script. It does not do anything, and no data is getting loaded. Any help,... (2 Replies)
Discussion started by: msrahman
2 Replies

6. Shell Programming and Scripting

[Perl + Gtk2] Image disappears after scrolling / minimizing window

Hello everyone I don't know if it's the right place to ask, but I will try. I want to use Gtk2 in my Perl chart-drawing script, I found a sample code that could be very useful for me somewhere, but I noticed there is one problem with that - when I draw something, and then scroll the window or... (0 Replies)
Discussion started by: xqwzts
0 Replies

7. Shell Programming and Scripting

Perl::Gtk2 on Linux --- How to Find the Default Font Being Used?

Hello All, Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not... Anyway.. How can I find out what the Default font being used is inside a Gtk2::Widget. In this case I'm trying to figure out the font being used inside a... (1 Reply)
Discussion started by: mrm5102
1 Replies

8. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (0 Replies)
Discussion started by: kiran425
0 Replies

9. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (1 Reply)
Discussion started by: kiran425
1 Replies

10. Programming

Perl: How to load some functions automaticaly, starting Perl inteructively (with -d -e 0)?

I would like to use Perl in 'interactive' mode (kind off), starting it by > perl -d -e 0; But I need to have some function be read on loading. Also, it should not be for anyone who starting Perl or use it any how. I did try to search, but not much result. I have try a file '.perldb':... (1 Reply)
Discussion started by: alex_5161
1 Replies
Gtk2::ColorButton(3)					User Contributed Perl Documentation				      Gtk2::ColorButton(3)

NAME
Gtk2::ColorButton HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Button +----Gtk2::ColorButton INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Glib::Object::_Unregistered::GtkActivatable METHODS
widget = Gtk2::ColorButton->new ($color=undef) o $color (Gtk2::Gdk::Color) widget = Gtk2::ColorButton->new_with_color ($color=undef) o $color (Gtk2::Gdk::Color) unsigned = $color_button->get_alpha $color_button->set_alpha ($alpha) o $alpha (unsigned) color = $color_button->get_color $color_button->set_color ($color) o $color (Gtk2::Gdk::Color) string = $color_button->get_title $color_button->set_title ($title) o $title (string) boolean = $color_button->get_use_alpha $color_button->set_use_alpha ($use_alpha) o $use_alpha (boolean) PROPERTIES
'alpha' (Glib::UInt : readable / writable / private) The selected opacity value (0 fully transparent, 65535 fully opaque) 'color' (Gtk2::Gdk::Color : readable / writable / private) The selected color 'title' (string : readable / writable / private) The title of the color selection dialog 'use-alpha' (boolean : readable / writable / private) Whether or not to give the color an alpha value SIGNALS
color-set (Gtk2::ColorButton) SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Button COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::ColorButton(3)
All times are GMT -4. The time now is 08:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy