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 32.156.376 Times

Tk::callbacks 804.027

  Date Added: June 21, 2010  |  Visits: 703


Report Broken Link
Printer Friendly Version

Product Homepage
Download (70 downloads)

Tk::callbacks allows specifying code for Tk to call. SYNOPSIS One can specify a callback in one of the following ways: Without arguments: ... => ⊂name, ... ... => sub { ... }, ... ... => methodname, ... or with arguments: ... => [ ⊂name ?, args ...? ], ... ... => [ sub { ... } ?, args...? ], ... ... => [ methodname ?, args...?], ... Perl/Tk has a callback, where Tcl/Tk has a command string (i.e. a fragment of Tcl to be executed). A perl/Tk callback can take one of the following basic forms: Reference to a subroutine ⊂name Anonymous subroutine (closure) sub { ... } A method name methodname Any of these can be provided with arguments by enclosing them and the arguments in []. Here are some examples: $mw->bind($class, " " => Delete); This will call $widget->Delete, the $widget being provided (by bind) as the one where the Delete key was pressed. While having bind provide a widget object for you is ideal in many cases it can be irritating in others. Using the list form this behaviour can be modified: $a->bind(" ",[$b => Delete]); because the first element $b is an object bind will call $b->Delete. Note that method/object ordering only matters for bind callbacks, the auto-quoting in perl5.001 makes the first of these a little more readable: $w->configure(-yscrollcommand => [ set => $ysb]); $w->configure(-yscrollcommand => [ $ysb => set ]); but both will call $ysb->set(args provided by Tk) Another use of arguments allows you to write generalized methods which are easier to re-use: $a->bind(" ",[Next,Page]); $a->bind(" ",[Next,Line]); This will call $a->Next(Page) or $a->Next(Line) respectively. Note that the contents of the [] are evaluated by perl when the callback is created. It is often desirable for the arguments provided to the callback to depend on the details of the event which caused it to be executed. To allow for this callbacks can be nested using the Ev(...) "constructor". Ev(...) inserts callback objects into the argument list. When perl/Tk glue code is preparing the argument list for the callback it is about to call it spots these special objects and recursively applies the callback process to them. EXAMPLES $entry->bind( => [$w , validate, Ev([get])]); $toplevel->bind(all, , [&unobscure, Ev(s)]); $mw->bind($class, , [SetCursor, Ev(UpDownLine,1)]);.

Requirements: No special requirements
Platforms: Linux
Keyword: A- Bind Callback Code For Delete Ev Libraries Programming Tk Tkcallbacks Will Call
Users rating: 0/10

License: Freeware Size: 5.7 MB
Libraries  -  Class::MethodMaker::V1Compat 2.08
Class::MethodMaker::V1Compat is a V1 compatibility code for C::MM. SYNOPSIS This class is for internal implementation only. It is not a public API. Class::MethodMaker version 2 strives for backward-compatiblity with version 1 as far as...
88.06 KB  
Libraries  -  Libsigc++ 2.1.1
libsigc++ implements a full callback system for use in abstract interfaces and general programming. libsigc++ is the most complete library of its kind with the ability to connect an abstract callback to a class method, function, or function...
2.1 MB  
Development Editors  -  Libsigc for Linux 2.2.10
libsigc++ implements a typesafe callback system for standard C++. It allows you to define signals and to connect those signals to any callback function, either global or a member function, regardless of whether it is static or virtual.
3.15 MB  
Database Tools  -  A MySQL Storage Engine for AWS S3 0.06
A MySQL Storage Engine for AWS S3 project is a plugin storage engine that allows MySQL to access Amazon Web Services Simple Storage Service (AWS S3) buckets and items. You need a MySQL source tree, and you need to have it built. Figure out...
327.68 KB  
Libraries  -  DBI 1.57
DBI is a database independent interface for Perl. SYNOPSIS use DBI; @driver_names = DBI->available_drivers; %drivers = DBI->installed_drivers; @data_sources = DBI->data_sources($driver_name, %attr); $dbh = DBI->connect($data_source,...
481.28 KB  
Science  -  GTfold 1.19
A Scalable Multicore Code for RNA Secondary Structure Prediction
199.87 KB  
Education  -  moocart 1.0
Moocart is a collection of code for working with Moodle and Zencart. The primary project is Moocash: a Ruby Rails bridge between the two for automatic course enrollments.
1.95 MB  
Science  -  SPINspiral 0.5.1
SPINspiral is a parameter-estimation code for the analysis of gravitational-wave signals detected by LIGO/Virgo.
895.23 KB  
Communication  -  Steepest Descent Algorithm 1.0
This is a small example code for "Steepest Descent Algorithm". It implements steepest descent Algorithm with optimum step size computation at each step. The code uses a 2x2 correlation matrix and solves the Normal equation for Weiner filter...
10 KB  
Programming  -  JaCC 4 WRL - The Java compiler for WRL 1.0
This project aims to provide a Java-Bytecode compiler for the fairly new programming language WRL and others like PHP4 and Postfix, based on the research on the SableCC parser generator and common W3C.ORG standards.
3.49 MB  
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, 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.15.3
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...
3.88 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