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

Tk::Gpack 0.8

  Date Added: January 24, 2010  |  Visits: 778

Tk::Gpack

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)



Tk::Gpack module contains abbreviated geometry arguments for pack, grid and place geometry managers. This module exports four functions for each of the different geometry mananers into the Tk namespace. These functions provide a variety of styles for controlling the indevidual geometry of one, or bulk groups of widgets. Each geometry manager has a series of single letter abbreviations allowing a significant reduction in code, while remaining fairly intuitive. SYNOPSIS use Tk::Gpack ; gpack, ggrid, and gplace are group packers, they recieve an even numbered list of alternating widgets and abbreviations. gpack($one, slan $two, sran $three, slanx1fb) ; # group pack ggrid($one, r25c10, $two, c9r15, $three, c1r1se ) ; # group grid gplace($one, w40h40x120y120anw, $two, x40y40ase, $three, aww20h20x25y140) ; # group placer tpack, tgrid, and tplace are target packers, and use exactly the same format except they take a preceding target widget, (typically a frame) which will be automatically be used in conjunction with the -in => argument. tpack($FRAME1, $one, slan $two, sran $three, slanx1fb) ; # target pack tgrid($TOPLEVEL1, $one, r25c10, $two, c9r15, $three, c1r1se ) ; # target grid tplace($MW, $one, w40h40x120y120anw, $two, x40y40ase, $three, aww20h20x25y140) ; # target placer xpack xgrid and xplace are expand packers, and used inline as a direct replacement to pack grid and place. The first string passed is the abbreviation string, while anything remaining will be parsed as the standard verbose options. $one->xpack(slan, -in => $FRAME1) ; # expand pack $two->xgrid(r4c4sw, -in => $TOPLEVEL2) ; # expand grid $three->xplace(x20y20aw, -in => $MW) ; # expand place spack sgrid and splace are self packers, they assume that an abbreviation is embedded in the widget as an option called -geometry. You must be using derived widgets for this to work, and have defined a configspec -geometry. The self packers perform the same as xpack in that they permit additional verbose option pairs to be passed which will be appended to the expansion of the embedded abbreviation. If you are using a default widget geometry as shown below, you can still override it by simply using xpack in place of spack. (spack wont take the abbreviation as an argument) This is particularly handly for templated code. To use spack splace and sgrid do the following: package DerivedButton ; ... sub Populate { $self->ConfigSpecs(-geometry => [PASSIVE, data, Data, slan]) ; # <------ Abbreviation } #!/usr/bin/perl -w use Tk ; ... my $DButton = $mw->DerivedButton()->spack(-in => $foo) ; Obviously this last example is not complete. Once youve built a derived widget it should make sense though. DETAILS The abbreviations are fairly intuitive. All supported options are represented by a single character. For the pack geometry manager all passed values are also single characters. For grid and place passed values may be multiple characters. Numeric arguments for grid and place are variable length integers for example. There are a few redundant characters, but they work as expected. NOT ALL OPTIONS TRANSLATE, in this version. (And probably for quite a few versions to come) But the most used ones do. Please review the following translation lists to see How things are supported at this time. SUPPORTED TRANSLATIONS # OPTIONS pack() ################### x = -expand s = -side a = -anchor f = -fill X = -padx Y = -pady # VALUES pack() #################### c = center l = left r = right t = top n = n s = s e = e w = w y = y x = x b = both b = bottom # OPTIONS grid() #################### r = -row c = -column s = -sticky # VALUES grid() #################### n = n s = s e = e w = w # OPTIONS place() #################### w = -width h = -height x = -x y = -y a = -anchor # VALUES place() #################### n = n ne = ne nw = nw s = s se = se sw = sw e = e.

Requirements: No special requirements
Platforms: Linux
Keyword: Geometry Grid Libraries One Options Pack Place Programming Tkgpack Values
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


TK::GPACK RELATED
Networking  -  FV All in One SEO Pack 1.6.11
A simplified version of All in One SEO Pack!Streamlined interface with no keywords field. Option to turn off excerpts and automated descriptions. Far better for pure SEO and for client use. Check screenshots.Optimizes your Wordpress blog for...
10 KB  
Programming  -  ELF statifier 1.6.11
ELF statifier create from dynamically linked executables and all its libraries one file. This file can be copied and run on another machine without need to drag all its libraries. Dynamically linked executables are smaller then statically...
97.28 KB  
Business  -  Grid-In-Hand(tm) Mobile Grid Plus 1.2.8
Grid-In-Hand Mobile Grid Plus One button data collection. Why make data collection harder than it needs to be? Use Scanfob 2002 and other Serialio.com wireless Bluetooth barcode and RFID scanners with Mobile Grid for fast data...
2.2 MB  
Modules  -  All In One SEO Pack Windows Live Writer Bridge 1.0
By default users are unable to specify custom fields from Windows Live Writer. InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Key features "All In One SEO Pack...
 
Modules  -  x7Host's Videox7 UGC Plugin 2.5.3.4
This plugin is a fork of Kaltura's original "All In One Video Pack" plugin, enhanced in many ways and designed from the bottom up to be easily integrated with the self-hosted Kaltura Community Edition.This is not just another video embed tool - it...
983.04 KB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Miscellaneous  -  Easily call executables from Python 1.0
One common aspect of programming is calling executables and processing results. It is not as easy or elegant to do this in Python as it is in a shell scripting language, such as bash. This script implements a shell-like module in Python which...
 
Modules  -  Missing Data All In One SEO Pack Plugin, Add-on 1.0
The "Missing Data - All In One SEO Pack" Add-on, is a plugin which can be used with the "All in One SEO Pack" plugin. The "Missing Data - All In One SEO Pack" add-on searches your published posts and pages, that don't contain a Title, Meta...
10 KB  
Finance  -  CBOE 1.3
CBOE Mobile is the free app for iPhone and iPad that gives you access to the most popular content from CBOEs website, including delayed quotes, market snapshots and charts, robust options education, CBOETV programming, the @CBOE Twitter feed and...
5.7 MB  
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.11.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