Gtk2::Ex::Simple::Tree for Linux v.0.50

Advertisement
Advertisement

Gtk2 has a powerful, but complex MVC (Model, View, Controller) system used to implement list and tree widgets. The Gtk2::Ex::Simple::Tree Perl module automates the complex setup work and allows you to treat the tree model as a more natural list of hash refs.After creating a new Gtk2::Ex::Simple::Tree object with the desired columns you may set the tree data with a simple Perl array assignment. Rows may be added or deleted with all of the normal array operations. You can treat the data member of the Simple::Tree object as an array reference, and manipulate the tree data with perl's normal operators. Each element is a hash reference containing (optionally) value and children members. value holds the value of the node while children is a array reference of futher nodes. (recursive)A mechanism has also been put into place allowing columns to be Perl scalars. The scalar is converted to text through Perl's normal mechanisms and then displayed in the tree. This same mechanism can be expanded by defining arbitrary new column types before calling the new function.SYNOPSIS use Glib qw(TRUE FALSE); use Gtk2 '-init'; use Gtk2::Ex::Simple::Tree; my $stree = Gtk2::Ex::Simple::Tree->new ( 'Text Field' => 'text', 'Int Field' => 'int', 'Double Field' => 'double', 'Bool Field' => 'bool', 'Scalar Field' => 'scalar', ); @{$stree->{data}} = ( { value => [ 'one', 1, 1.1], children => [ { value => [ 'one-b', -1, 1.11,], }, ] }, );

Gtk2 has a powerful, but complex MVC (Model, ... A simple interface to Gtk2's complex MVC tree widget ...

 
  • Gtk2::Ex::Simple::Tree for Linux
  • 0.50
  • Ross McFarland
  • Linux
  • Freeware
  • 10 Kb
  • 195
  • Free
 
 

Review Gtk2::Ex::Simple::Tree for Linux

  • captcha
 
 
New Miscellaneous software
  • ModCom  v.12.0Free Windows software for Data Acquisition & Control, HMI / SCADA, Industrial Automation, Process Control, and Data Logging. Read data from sensors, turn on/off electrical equipment, output control voltages, count or time events, move stepper motors.
  • .Net OCR Library  v.4.4.0Iron OCR is a .NET OCR library allowing users to convert images and PDF documents back into text using the .NET Framework in C#, F#, or VB.NET.
  • The .Net PDF Library  v.5.0.5.2A .NET PDF library such as Iron PDF is a software library for C#, VB.NET, and other .NET Framework developers to work with PDFs generating PDFs, editing PDFs, and extracting PDF content within their applications. Supports .Net Core & .Net Framework.