/srv/irclogs.ubuntu.com/2013/01/30/#ubuntu-app-devel.txt

=== jackyalcine_ is now known as jalcine
jackyalcineBoy, making and patching packages for Ubuntu is no joke.10:03
jackyalcinedoing that all the time would make you a "rockstar" programmer10:03
jackyalcinelol10:03
qwertzui11:-)11:01
GoodHand_hi13:16
=== dpm is now known as dpm-laptop
aminbhi everyone. can anybody help me with a question about pygtk and "quickly"?17:37
dz0nyaminb: maybe17:38
dz0nyask17:38
aminbsure17:45
aminbthank you guys17:45
aminbhere's my question17:45
aminbI'm using quickly for development. I have to create a few checkboxes during the runtime.17:46
aminbmy program has to interact with a webserver and receive data and based on those data it should create some checkboxes on the window17:47
aminbI don't know what I should do exactly. After a I create an instance, do I have to add it to a hbox or vbox or directly to the window?17:47
aminbI'm a newbie in python and I'm a little bit confused :)17:47
aminbcan you help me with that?17:47
=== dpm-laptop is now known as dpm
dz0nyhm, checkboxes vary in number?17:49
dz0nyyou should add them to vbox17:49
aminbyeah. I'll probably loop through the data that I receive from the server and add checkbox for each item17:50
dz0nyif you have finite number of checkboxes, then maybe better to just change labels?17:50
aminbbasically, I'm trying to write a todo list program with the ability to sync the tasks with a webserver17:50
aminbis there a better way than using checkboxes then?17:50
dz0nyhtml :)17:50
aminbyou mean using html inside my local python app?17:51
dz0nyyou render ui in webkit, communication is done in python17:51
dz0nymaybe you should first try native python way17:52
dz0nyonce you learn all quirks go the hybrid way17:52
aminbdamn I'm really a newbie and don't know how to do all that stuff..17:52
dz0nyjust suggestion17:52
aminbyeah that's a good idea17:52
dz0nyhtml is easier to design17:52
dz0nygtk is pain17:53
aminbagree17:53
aminbso, can you write me little snippet to add 3 checkboxes for example to a hbox?17:53
dz0nyhave you seen http://python-gtk-3-tutorial.readthedocs.org/en/latest/17:53
aminbI've seen it but I haven't read it thoroughly17:54
dz0nychehck http://python-gtk-3-tutorial.readthedocs.org/en/latest/button_widgets.html#checkbutton17:55
dz0nycheck*17:55
dz0nyi'am mobile right now, if you still can't figure it out. ping me in about one hour17:56
aminbbut you know, code generated by quickly is a little bit different than this, and most of these stuff are included by default in libs folder so I don't know how I can create objects after initialization17:56
aminbof course17:56
aminbfor example, i saw this: http://python-gtk-3-tutorial.readthedocs.org/en/latest/layout.html#boxes17:56
aminbbut I'm not quite sure how to use it. since quickly generated code is doing the initialization by itself. Do i have to edit those auto generated files then?17:57
dz0nyyea all windows stuff is already done, other code goes to YourAppNameWindow.py17:57
dz0nycheck this http://bazaar.launchpad.net/~janez-troha/rtvslo-predvajalnik/quickly_trunk/view/head:/rtvslo/RtvsloWindow.py17:59
aminbso then, how can I add objects to the window after initialization, during the execution of the program?18:00
aminbI will check that code out, while you're reading my question right now :)18:00
dz0nyself.my_vbox= self.builder.get_object("vbox_created_in_glade")18:01
dz0nythen you create checkbox18:03
dz0nyand add to vbox18:03
dz0nyeg self.my_vbox.add(chx_box)18:03
dz0nythats it18:04
dz0nyyou maybe want to add events, connect method18:04
dz0nybut thats it18:04
aminband then how can add thanks man. I'm currently trying it. but I don't think there is a add method for the box18:07
aminbi guess i gotta use pack_start but i have to see the doc18:07
aminbdz0ny: i'm trying to use this18:19
aminbvp1 = self.builder.get_object("viewport1"); amin = Gtk.Label(); amin.set_text("Hi there! :}"); vp1.add(amin);18:19
aminband i get no errors but nothing happens on the window :(18:19
dz0nyvp1.show_all(); or vp1.showall();18:20
dz0nydamm those inconsistencies18:20
aminbit was vp1.show_all()18:22
aminbthank you so much18:22
aminbis there a way of doing it using vbox though?18:22
aminbor i have to deal with viewports?18:22
dz0nyithe the same just just pack_start instead add18:23
aminbi'm gonna give that a try18:24
aminbdamn it. this pack_start is getting on my nerves :D18:25
aminbi should pass 4 params18:25
aminblet's see the docs..18:25
aminbdz0ny: I got it man :) thanks so much for all your help and patience ^_^18:29
aminbi'll ask my questions here or maybe from you using /msg18:29
aminbif that's fine :/18:29
jvrbanacmhall119, I made the changes you mentioned yesterday. The updated diagram is in your email.20:27
mhall119thanks jvrbanac20:29
mhall119jvrbanac: release and distro need to be linked20:30
mhall119at which point, we probably don't need distro linked to platform_items20:31
mhall119otherwise this looks good20:32
jvrbanacmhall119, Ahh! I miss understood. Ok, distro -> release -> platform20:32
jvrbanacright?20:32
mhall119right20:32
jvrbanacmhall119, done! I attached them to the wiki page as well. We'll still need to update the page to reflect the changes, but at least we have something to work with.20:45
mhall119thanks jvrbanac!20:48
mhall119jvrbanac: we should be able to keep the same UI mockups, they would just be pre-generated when we import APIs, not dynamically generated on page request, right?20:49
jvrbanacmhall119, I would think so.21:03

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!