i think your right

glade just produces glacially ancient perl code
actually glade does a whole set of rather annoying things,
like writing into symbol table when not have to.

please use some better code or xrc for that matter.
xrc code is much mre flexible and can produced via WxFormbuilder and the usual
8 line script will load it and turn it into an app which has it all.

best
herbert aka lichtkind


Am 03.04.2013 18:00, schrieb Steve Cookson:
> Hi Guys,
> 
> Can I ask you some really basic questions, which I should know the answer to
> by now!!
> 
> Here is a bit of code from wxGlade (the new one, natch). 
> 
>     use Wx 0.15 qw[:allclasses];
>     use strict;
> 
>     # begin wxGlade: dependencies
>     # end wxGlade
> 
>     # begin wxGlade: extracode
>     # end wxGlade
> 
>     package appointments;
> 
>     use Wx qw[:everything];
>     use base qw(Wx::Dialog);
>     use strict;
> 
> Question 1: Does it really need two "use strict"s, clearly you can never have
> enough, but doesn't the first one have a greater scope than the second is not
> necessary.
> 
> Question 2: on "use Wx", again, doesn't the first "use Wx" just cause a crash
> if you have wxWidgets less than 0.15, which is unlikely these days, but "use
> Wx qw[:everything];" should be enough?
> 
> Have I not understood this?
> 
> Regards
> 
> Steve
> 
>  

Reply via email to