Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.067.526 Times

pgk 0.05

  Date Added: April 13, 2010  |  Visits: 544

pgk

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)

pgk is a Perl Gimp Kit, a OO perl gtk interface. pgk::Widget new ($name,$type) pre: $name is the name of this widget. $type is the type of this widget. post: base class pgk::Widget created, that implements base functions for all derived pgk classes. add($widget) pre: $widget is a derivative of pgk::Widget. post: $widget has been added to the widgetlist of $self. setHandle($handle) pre: Got $handle from pgk_xs C-function and is a pointer to a GTK widget. post: $widget is associated with $handle. $handle=getHandle() pre: setHandle(..) post: =the GTK widget pointer associated with this pgk widget. Can be used in calls to pgk_xs. setEvent($eventFunc,$eventType, ...) pre: $eventType <- valid GTK event for the specific GTK Widget associated with getHandle() post: In case of an event of type $eventType for this GTK Widget, $eventFunc will be called with arguments .... smpl: my $dlg=new pgk::Dialog(my_dialog,This is a title, 3, 3); my $lab=new pgk::Label(my_label, This is my label); $lab->setEvent(main::LabelEvent, clicked, $dlg); In case of a clicked event for the $lab label, main::LabelEvent will be called with argument $dlg. E.g., fields in $dlg can be updated. setTimer($millisecs,$timerFunc, ...) pre: post: Timer is set for $millisecs for this widget. After $millisecs, &$timerFunc is called with arguments .... Note: timerFunc returns 1 for continues calling. timerFunc returns 0 for one shot calling. smpl: my $dlg=new pgk::Dialog(my_dialog, My title, 2, 2); $dlg->setTimer(1000, main::updateTime, $dlg); package main; sub updateTime { my $window=shift; my $time=ctime(); $window->setValue($time); return 1; } addTimer($millisecs, $timerFunc, ...) pre: post: Timer is added to the current widget. After $millisecs, &$timerFunc is called with arguments $this, .... Note: timerFunc returns 1 for continues calling. timerFunc returns 0 for one shot calling. smpl: my $dlg=new pgk::Dialog(my_dialog, My title, 2, 2); $dlg->addTimer(1000, main::updateTime, "My extra argument"); package main; sub updateTime { my $self=shift; my $txt=shift; my $time=ctime(); $self->setValue($time." $txt"); return 1; } setProp($prop,$value|@value) post: Property $prop of $widget has been set to $value. smpl: $widget->setProp(myprop,"My Value"); getProp($prop) post: = value of property $prop of $widget. smpl: my $t=$widget->getProp(myprop); setWidget($widget) post: sets property widget.$widget->name() to $widget. getWidget($name) post: =widget of $name, if setWidget has been called before. =undef, otherwise setValue($value) post: pgk::Widget base class implements this method by calling setProp(value,$value). getValue() post: pgk::Widget base class implements this method by calling getProp(value). show() post: shows all PGK widgets associated with the current widget, including this one. Quit() post: Quits the application, destroying all pgk windows opened. name() post: =name of widget..

Requirements: No special requirements
Platforms: Linux
Keyword: Dlg Libraries Name Oo Perl Perl Gimp Kit Pgk Programming Value Widget
Users rating: 0/10

License: Freeware Size: 7.17 KB
PGK RELATED
Libraries  -  Data::Type 0.01.04
Data::Type is a Perl module with versatile data and value types. SYNOPSIS use Data::Type qw(:all); use Error qw(:try); try { verify $email , EMAIL; verify $homepage , URI(http); verify $cc , CREDITCARD( MASTERCARD, VISA ); verify...
22.53 KB  
Libraries  -  Statistics::Forecast 0.3
Statistics::Forecast is a Perl module that calculates a future value. This is a dummy Oriented Object module that calculates a future value by using existing values. The new value is calculated by using linear regression. SYNOPSIS use...
3.07 KB  
Libraries  -  Class::Contract 1.00
Class::Contract - Design-by-Contract OO in Perl. SYNOPSIS package ClassName use Class::Contract; contract { inherits BaseClass; invar { ... }; attr data1; attr data2 => HASH; class attr shared => SCALAR; ctor new; method...
26.62 KB  
Libraries  -  App::SimpleScan::Plugin::Forget 1.02
App::SimpleScan::Plugin::Forget is a Perl module to forget a variables value. SYNOPSIS # In a simple_scan input file, after installing this module: # Define the variable foo: %%var foo baz bar quux # Later in the file: %%forget foo #...
4.1 KB  
Libraries  -  Piet::Interpreter 0.03
Piet::Interpreter is a Perl interpreter for the Piet programming language. SYNOPSIS use Piet::Interpreter; my $p = Piet::Interpreter->new(image => my_code.gif); $p->run; Piet is a programming language in which programs look like abstract...
17.41 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Devel::Modlist 0.71
Devel::Modlist is a Perl extension to collect module use information. SYNOPSIS perl -d:Modlist script.pl The Devel::Modlist utility is provided as a means by which to get a quick run-down on which libraries and modules are being utilized by...
8.19 KB  
Libraries  -  Template::Plugin::Heritable 0.02
Template::Plugin::Heritable is a Perl module with OO dispatching and inheritance for templates. SYNOPSIS [% USE Heritable %] [%# searches providers for a "view" template method on class (which should be a metamodel object, eg someobj.meta...
21.5 KB  
Libraries  -  Filesys::DiskFree 0.06
Filesys::DiskFree is a Perl module to perform the Unix command df in a portable fashion. SYNOPSIS use Filesys::DiskFree; $handle = new Filesys::DiskFree; $handle->df(); print "The root device is ".$handle->device("/")."n"; print "It has...
5.12 KB  
Libraries  -  Imager::Color 0.54
Imager::Color is a Perl module with color handling for Imager. SYNOPSIS $color = Imager::Color->new($red, $green, $blue); $color = Imager::Color->new($red, $green, $blue, $alpha); $color = Imager::Color->new("#C0C0FF"); # html color...
849.92 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB