sevenair
Posts: 1564
Joined: Sun Feb 04, 2001 7:18 am

Anyone Good With TCL/TK

Thu Nov 20, 2003 10:11 pm

Im really bad at it and need help! Any ideas
Write a tcl/tk program that provides some of the functionality of the Regex Coach that you have been using for the previous exercise but also provides some extra functions. Minimally there should be two editable boxes that allow a user to enter a regular expression in one box and to test it against a text entered into the other box. The design of the interface is up to you.

Once this has been implemented, extend your interface by adding controls (buttons, menus - again you decide) that help the user write her regular expression : for instance there could be a button marked "Any character" that inserts a ? into the regular expression when it is clicked.

You may like to think about using entry and/or text widgets, button and/or menubutton widgets. Design the layout of your window on paper before you start to implement the code, making sure that you understand how it fits into a grid.
 
gordonsmall
Posts: 2106
Joined: Sun Jul 01, 2001 1:52 am

RE: Anyone Good With TCL/TK

Thu Nov 20, 2003 11:05 pm

Assuming that you are implementing it in PERL under Unix/Linux, does it have to be tcl/tk? I detest working with tcl/tk, much prefer GTK, or better still wxWindows as it allows piss-easy cross platform development - although wxWindows isn't exactly Perl friendly, you can get perl-like RegExp modules for C++ which are breeze to work with.

Give me a bit more information and I might be able to help.

Regards,
Gordon.
Statistically, people who have had the most birthdays tend to live the longest.
 
sevenair
Posts: 1564
Joined: Sun Feb 04, 2001 7:18 am

Tcl

Fri Nov 21, 2003 10:27 pm

We using BASH on Linux, i got the buttons and input boxes to work, but it s the actual regexp I cant get working-I want to compare two strains,and if they match then tell me.

Who is online

Users browsing this forum: Airstud and 17 guests

Popular Searches On Airliners.net

Top Photos of Last:   24 Hours  •  48 Hours  •  7 Days  •  30 Days  •  180 Days  •  365 Days  •  All Time

Military Aircraft Every type from fighters to helicopters from air forces around the globe

Classic Airliners Props and jets from the good old days

Flight Decks Views from inside the cockpit

Aircraft Cabins Passenger cabin shots showing seat arrangements as well as cargo aircraft interior

Cargo Aircraft Pictures of great freighter aircraft

Government Aircraft Aircraft flying government officials

Helicopters Our large helicopter section. Both military and civil versions

Blimps / Airships Everything from the Goodyear blimp to the Zeppelin

Night Photos Beautiful shots taken while the sun is below the horizon

Accidents Accident, incident and crash related photos

Air to Air Photos taken by airborne photographers of airborne aircraft

Special Paint Schemes Aircraft painted in beautiful and original liveries

Airport Overviews Airport overviews from the air or ground

Tails and Winglets Tail and Winglet closeups with beautiful airline logos