*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
jotham | i work with it daily | 00:00 |
---|---|---|
mithro | I have used XMLRPC quite a bit previously | 00:02 |
jotham | well the server end is .NET and the client end is Flash 8/AS2 | 00:03 |
nash | mithro: Quite busy | 00:07 |
mithro | nash: would you have time to review some applications for the Thousand Parsec MIDP client project? | 00:12 |
nash | Probably | 00:15 |
nash | As long as they aren't too long... ;-) | 00:15 |
mithro | they are not very good - so I'm guessing you'll just say bah! a lot :) | 00:19 |
mithro | nash: sent | 00:19 |
nash | heh | 00:19 |
nash | We are currently in the process of interviewing.... | 00:19 |
nash | I'll leave it there | 00:19 |
mithro | there are 10 applications | 00:22 |
mithro | nash: no extreme hurry | 00:37 |
*** tuna-fish has quit IRC | 00:50 | |
*** DTRemenak has quit IRC | 01:34 | |
*** DTRemenak has joined #tp | 01:55 | |
*** tuna-fish has joined #tp | 02:49 | |
*** nash has quit IRC | 03:38 | |
*** JLP has quit IRC | 04:13 | |
*** mithro has quit IRC | 04:26 | |
*** JLP has joined #tp | 04:31 | |
JLP | morning all | 04:31 |
tpb | aloril has quit worldforge (Remote host closed the connection) | 05:14 |
tpb | aloril has joined on worldforge | 05:35 |
tpb | aloril has quit worldforge (Remote host closed the connection) | 05:39 |
tpb | aloril has joined on worldforge | 06:47 |
*** mithro has joined #tp | 07:39 | |
*** mithro has quit IRC | 09:09 | |
*** Epyon has quit IRC | 11:11 | |
*** JLP has quit IRC | 12:21 | |
*** JeffM has joined #tp | 12:36 | |
*** Erroneous has joined #tp | 12:38 | |
*** Epyon has joined #tp | 15:02 | |
tpb | aloril has quit worldforge (Remote host closed the connection) | 15:40 |
tpb | aloril has joined on worldforge | 15:43 |
*** JLP has joined #tp | 16:28 | |
*** greywhind has quit IRC | 16:32 | |
*** tuna-fish has quit IRC | 16:33 | |
tpb | disconnected from worldforge: Ping sent at 2007-10-16T17:40:06 not replied to. | 17:42 |
*** tpb has joined #tp | 17:42 | |
*** ChanServ sets mode: +o tpb | 17:42 | |
*** nash has joined #tp | 17:54 | |
*** mithro has joined #tp | 18:41 | |
*** greywhind has joined #tp | 19:13 | |
*** mithro has quit IRC | 19:14 | |
*** mithro has joined #tp | 19:40 | |
*** JeffM has quit IRC | 19:53 | |
mithro | yay, got my email inbox down to 10 emails | 19:59 |
mithro | how is everyone today? | 20:00 |
greywhind | i'm good. you? | 20:00 |
mithro | pretty good | 20:00 |
mithro | the office is really empty today | 20:01 |
greywhind | is that a good thing or a bad thing? | 20:01 |
mithro | bit of both | 20:01 |
mithro | greywhind: any progress? | 20:02 |
greywhind | mithro: haven't worked on it yet today. i will, though... got any ideas about why text isn't being correctly removed? | 20:03 |
mithro | you need to remove the actual object? | 20:03 |
mithro | (from the panel?) | 20:03 |
greywhind | mithro: hmm... i based my code on this wiki FAQ entry: http://wiki.wxpython.org/Frequently_Asked_Questions#head-517fb7426c6c5e97e6693ab5fdce73200fe8ccb7 | 20:05 |
tpb | Title: Frequently Asked Questions - wxPyWiki (at wiki.wxpython.org) | 20:05 |
mithro | greywhind: my guess is that DestroyChildren isn't quite recursive for some unknown reason | 20:06 |
greywhind | mithro: hmm... so should i call DestroyChildren() on the sizer rather than the panel? or does the sizer have a different method to do the same thing? | 20:07 |
mithro | well, do you have multiple panels? | 20:09 |
mithro | i think you have to call it on each panel | 20:10 |
mithro | how much longer are you going to be around? | 20:13 |
greywhind | mithro: sorry, had to take a phone call | 20:14 |
mithro | I'll probably be able to look at it during lunch | 20:14 |
greywhind | mithro: there's a panel at the bottom of the hierarchy that contains a wxFlexGridSizer, to which are dynamically added some StaticText items... i'm removing from the sizer, then I called DestroyChildren() on the panel that contains the sizer | 20:17 |
mithro | do you call Update and Layout after the Destory Children call? | 20:17 |
greywhind | mithro: just Layout() | 20:18 |
mithro | hrm... do you have the code? | 20:18 |
greywhind | mithro: yeah. i'll paste it | 20:18 |
greywhind | http://rafb.net/p/nzRoxx92.html (80 lines) | 20:19 |
tpb | Title: Nopaste - No description (at rafb.net) | 20:19 |
greywhind | i removed the DestroyChildren() call because it didn't seem to make a difference, by the way. | 20:19 |
mithro | oh | 20:21 |
mithro | I think you need the following | 20:21 |
mithro | for child in self.prop_sizerpanel.GetSizer().GetChildren(): | 20:22 |
mithro | self.prop_sizerpanel.RemoveChild(child) | 20:22 |
mithro | child.Hide() | 20:22 |
mithro | child.Destroy() | 20:22 |
mithro | this is what the code use to do | 20:27 |
mithro | # Remove the previous panel and stuff | 20:27 |
mithro | if hasattr(self, 'properties'): | 20:27 |
mithro | self.properties.Hide() | 20:27 |
mithro | self.design_ps.Remove(self.properties) | 20:27 |
mithro | self.properties.Destroy() | 20:27 |
mithro | del self.properties | 20:27 |
mithro | where self.properties was the base panel | 20:27 |
greywhind | right. but i can't remove the entire panel, since it's not dynamically generated anymore. | 20:28 |
mithro | why not? | 20:28 |
greywhind | well, it wouldn't be re-created for the next click - or would it? | 20:29 |
mithro | that panel should still be dynamically generated? | 20:29 |
greywhind | no, it's defined in XRC - only its contents are dynamically generated | 20:29 |
mithro | you could just put another panel ontop of the XRC panel | 20:30 |
mithro | but you can probably just remove the XRC panel and manually re-add it | 20:30 |
mithro | the XRC stuff is only active during creation really | 20:31 |
greywhind | well, the panel is the same every time anyway - it's just the contents that need to change | 20:31 |
mithro | after that it's just a normal wx window | 20:31 |
mithro | removing the panel seems to be the cleanest way to remove all the contents | 20:31 |
greywhind | by the way, the code you gave me earlier has an error: | 20:32 |
greywhind | http://rafb.net/p/L9Uwh495.html (8 lines) | 20:32 |
tpb | Title: Nopaste - No description (at rafb.net) | 20:32 |
greywhind | seems like "child" isn't of the right type? | 20:32 |
mithro | greywhind: yes that is correct, I'm not sure what GetChildren is returning | 20:32 |
mithro | greywhind: it was more pesudo code rather then actual working code | 20:33 |
greywhind | mithro: ah. ok. | 20:33 |
mithro | without your code being committed, I can't really provide working code :) | 20:36 |
greywhind | mithro: seems like this shouldn't be so difficult... | 20:37 |
mithro | greywhind: that would be my theory | 20:37 |
mithro | I didn't think this conversion would that you this long | 20:40 |
greywhind | mithro: sorry about that - there've been quite a few issues to work out. | 20:41 |
mithro | things always take longer then expected :/ | 20:41 |
* jotham ducks | 20:42 | |
jotham | i think i've even forgotten how to program python | 20:42 |
mithro | jotham: :/ | 20:47 |
jotham | i need a C style and XML style pretty printer | 20:50 |
jotham | like one that can take both formats and give me a nice tabulated file | 20:50 |
greywhind | mithro: sigh... when i remove the entire panel then re-generate it, the text doesn't show up at all and no errors are shown. that's why i hard-coded it in the first place | 20:50 |
mithro | greywhind: okay, a hint is to set the background color of the panel to something like hot pink | 20:51 |
mithro | then you can see if the panel is even in the right place | 20:52 |
greywhind | mithro: hmm... good idea. | 20:52 |
mithro | that is something I learned from coding CSS stuff | 20:52 |
jotham | use firebug | 20:53 |
jotham | it shows you everything | 20:53 |
jotham | it's pretty much what you should have if you are dicking with html | 20:53 |
mithro | jotham: this was before firebug really existed :P | 20:53 |
jotham | you'd think there would be a unified pretty printer | 20:56 |
greywhind | mithro: ok, got it showing up correctly again, but it still has strange text display problems | 20:58 |
greywhind | how can it be totally destroyed and still re-appear with the same text on it? | 21:00 |
mithro | greywhind: print out the input and make sure you have the right input? | 21:01 |
greywhind | mithro: hmm... maybe the text is added to something else... | 21:01 |
mithro | greywhind: that is another option | 21:02 |
mithro | make sure the parent of the text is the panel you are destorying | 21:02 |
greywhind | mithro: right... checking | 21:02 |
greywhind | mithro: is it possible that the sizer of the panel is not being destroyed along with the panel itself? | 21:06 |
mithro | greywhind: not really | 21:06 |
*** Erroneous has quit IRC | 21:07 | |
mithro | greywhind: do you want to commit it and let me have a look? | 21:09 |
greywhind | mithro: maybe in a bit. | 21:09 |
*** tuna-fish has joined #tp | 21:18 | |
mithro | greywhind: any luck? | 21:25 |
greywhind | mithro: no. just getting crazier. | 21:26 |
mithro | :/ | 21:26 |
mithro | greywhind: commit it and I'll have a play | 21:32 |
greywhind | mithro: i may be getting somewhere now... not sure. | 21:32 |
greywhind | mithro: hah! got it! | 21:39 |
mithro | yay! | 21:39 |
greywhind | i'll push now, so you can see it and tell me if i need to do anything else. | 21:40 |
mithro | okay | 21:40 |
CIA-9 | noegnud tpclient-pywx-incoming * r762382d7dac9 /windows/ (main/winDesign.py xrc/winDesign.py xrc/winDesign.xrc): | 21:51 |
CIA-9 | Fixed text-bunching bug in winDesign.py by reinstating the original method of generating | 21:51 |
CIA-9 | the list of properties, with a few modifications. | 21:51 |
greywhind | mithro: try that out | 21:51 |
mithro | greywhind: any luck with Stars! btw? | 21:52 |
greywhind | mithro: haven't tried it yet | 21:52 |
mithro | greywhind: first problem - things don't resize when the window resizes | 22:02 |
greywhind | mithro; yeah... i found that if i didn't specify the size of each object, they would be 0 x 0 | 22:02 |
mithro | you need to tell them to auto expand | 22:03 |
greywhind | mithro: how do i do that? | 22:03 |
mithro | depends on the sizer | 22:03 |
greywhind | mithro: hmm... alright, i'll work on that tomorrow then. | 22:03 |
mithro | you need to look at wx.EXPAND and wx.GROW | 22:03 |
mithro | and also the growable columns/rows in a flexgrid sizer | 22:03 |
mithro | well I'm thinking I might head to lunch | 22:34 |
mithro | nash: any luck with the job apps? | 23:26 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!