#perl
04 November 2007
Total 21 pages. You are browsing page 3/21.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
01:26 <****> what's the easiest way to make a GUI with perl?
01:26 <****> tk?
01:26 <****> tk is ugly
01:26 <****> Go to the superintendent and say, "I'll give you this perl if you give me a GUI."
01:26 <****> POE::Loop::Gtk
01:26 <****> + GladeXML
01:26 <****> I'd suggest a webapp
01:26 <****> how about gtk2-perl
01:27 <****> ribamar: would a package variable, which is copied to an attribute in the constructor work?
01:28 <****>{attribute} (and then blessed)?
01:28 <****> I mean
01:29 <****> our $foo;
01:29 <****>{mycopy} = $foo;
01:29 <****> copy? refernce or clone?
01:30 <****>{variable_n}
01:30 <****> Gekz: whatever gtk route you go (Glib or POEw/GTK support), make sure to use Glade
01:31 <****> why
01:31 <****> ribamar: any chance you can put them into a hash to clone?
01:31 <****> Gekz: there is an application similiar to MS' Visual Studio that generates xml information for windows for Glade to interpret
01:31 <****> fxn : can you give a simple example? ddnt get...
01:31 <****> Jmaxx: I'm not an idiot, I know what glade is
01:31 <****> http://en.wikipedia.org/wiki/Glade_Interface_Designer
01:31 <****> but why would I want to use glade?
01:31 <****> because it's less painful?
01:31 <****> ribamar: you have too many variables. you need to structurize your data.
01:31 <****> give me an example
01:32 <****> ribamar: our %variables;
01:32 <****>{mycopies}} = %foo;
01:32 <****> it's my opinion, take it or leave it. i'm not really inclined to go out of my way to convince you of anything when you give me that attitude when I try to help :)
01:33 <****> anno- : not that 50 variables, but a lot... i just implemented blindly an algorithm from a paper...
01:33 <****> I'm sorry if you took it the wrong way.
01:33 <****> but I want to know _how_ glade makes it easier
01:33 <****> like, shorter code or what?
01:33 <****>{mycopies}} = %variables;
01:33 <****> hi
01:33 <****> fxn : the copy would work, but i think i'd still pass thourh the entire algorithm and change how I access the variables, no?
01:34 <****> if i had an array with some empty elements, what would be the best way to replace the empty elements with something else?
01:34 <****> ribamar: yep, but then comes anno-'s remark, that smeels badly from the start, you'll pay for it at some point
01:34 <****> ribamar: better do it now than later
01:34 <****> well, for me, who doesn't design Gtk interfaces a lot, it's easier to just design in glade and export to xml, so if I want to make a change to the UI, there's little code I have to change; and glade is easier to work with than the Gtk API, in my opinion
01:34 <****> I also prefer POE to gtk's event library
01:35 <****> ribamar: do you really need that mixture of globals and locals?
01:36 <****> anno- , fxn : I agree to you. For my needs I need only one instance of the package, however I'd like to make it more general... maybe there's no easy change to do that..
01:36 <****> hi i have some problem with perl
01:36 <****> Jmaxx: how is Glade's xml actually implemented in your code?
01:36 <****> spaceinvader: defined or $_ = $something_else for @array;
01:36 <****> fxn : the algorithm relies on depending on a lot of state information...
01:36 <****> does anyone exist here can help me
01:37 <****> fxn : and must be used by 2 threads...
01:37 <****> fxn : maybe if I pass all those variables by argument...
01:37 <****> perlik: just ask please
01:37 <****> threads...
01:38 <****> fxn : but I think it doesnt hurt to ask if there's an easier way to do that =) but it seems that I'll have to do some hard work!
01:39 <****> does each thread keep its own state, or do they communicate?
01:40 <****> anno- : the threads keep the same state (in original: our lot_of_vars:shared)...
01:40 <****> have fun
01:40 <****> anno-: thanks]
01:42 * CPAN upload: Parse-Marpa-0.001_031 (+ ) by JKEGL
01:43 <****> God I hate Glade, it's terribly hard to use.
01:43 <****> -_-
01:43 <****> Your FACE is terribly hard to use.
01:44 <****> you cant use my face :D
01:44 <****> gumbybrain: is gekz's face terribly hard to use?
01:44 <****> I only need one tool that runs perpendicular to the face of the hard way?
01:48 <****> serfbot: HI SERFBOT
01:48 <****> It was intermission, and We were also talking about Revolutionary Girl Utena, where we have the Absolute Destiny Apocalypse mixed in with octopi falling out of touch with their culture. On the net.
01:49 <****> ...
01:49 * SubStack has no idea where that came from.
01:49 <****> but excellent
01:50 <****> hmm
01:51 <****> Brilliant.
01:51 <****> perlbot: u
01:51 <****> 'u' is a letter of the alphabet that comes before 'v' and which can make a variety of sounds - likely, however, if I am asked about it, you're wanting me to point out how GALACTICALLY STUPID using 'u' instead of 'you' will appear. You can wean yourself of this habit by silently pronouncing it to yourself as 'oo' when you are typing it, and then you will realize how stupid you look.
01:52 <****> (.. it's for another channel)
01:52 <****> iank: no u
01:52 <****> GumbyBRAIN: serfbot is back!
01:52 <****> I wonder how many indigant use.perl article about what he is talking about rules and grammars like the back of the day before the next.
01:52 <****> no oo
01:52 <****> oo--
01:52 <****> perlbot karma oo
01:52 <****> oo doesn't have any karma
01:52 <****> o_O
01:52 <****> Interesting.
01:53 <****> oo++
01:53 <****> perlbot karma oo
01:53 <****> Karma for oo: 1
01:53 <****> oo--
01:53 <****> perlbot karma oo
01:53 <****> oo doesn't have any karma
01:53 <****> Not very.
01:53 <****> Sure it is.
01:53 <****> Some person did oo plus plus, and apparently only once.
01:53 <****> OO++
01:53 <****> perlbot karma oo
01:53 <****> Karma for oo: 1
01:53 <****> object oriented programming sir!
01:54 <****> o_O is the new oo
01:54 <****> oo-- # I don't actually like it :/
01:54 <****> o-Gc++ #wank it! Wank it good!
01:54 <****> serfbot: perl
Total 21 pages. You are browsing page 3/21.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
