Tuesday, 2007-10-16

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
jothami work with it daily00:00
mithroI have used XMLRPC quite a bit previously00:02
jothamwell the server end is .NET and the client end is Flash 8/AS200:03
nashmithro: Quite busy00:07
mithronash: would you have time to review some applications for the Thousand Parsec MIDP client project?00:12
nashProbably00:15
nashAs long as they aren't too long... ;-)00:15
mithrothey are not very good - so I'm guessing you'll just say bah! a lot :)00:19
mithronash: sent00:19
nashheh00:19
nashWe are currently in the process of interviewing....00:19
nashI'll leave it there00:19
mithrothere are 10 applications00:22
mithronash: no extreme hurry00:37
*** tuna-fish has quit IRC00:50
*** DTRemenak has quit IRC01:34
*** DTRemenak has joined #tp01:55
*** tuna-fish has joined #tp02:49
*** nash has quit IRC03:38
*** JLP has quit IRC04:13
*** mithro has quit IRC04:26
*** JLP has joined #tp04:31
JLPmorning all04:31
tpbaloril has quit worldforge (Remote host closed the connection)05:14
tpbaloril has joined on worldforge05:35
tpbaloril has quit worldforge (Remote host closed the connection)05:39
tpbaloril has joined on worldforge06:47
*** mithro has joined #tp07:39
*** mithro has quit IRC09:09
*** Epyon has quit IRC11:11
*** JLP has quit IRC12:21
*** JeffM has joined #tp12:36
*** Erroneous has joined #tp12:38
*** Epyon has joined #tp15:02
tpbaloril has quit worldforge (Remote host closed the connection)15:40
tpbaloril has joined on worldforge15:43
*** JLP has joined #tp16:28
*** greywhind has quit IRC16:32
*** tuna-fish has quit IRC16:33
tpbdisconnected from worldforge: Ping sent at 2007-10-16T17:40:06 not replied to.17:42
*** tpb has joined #tp17:42
*** ChanServ sets mode: +o tpb17:42
*** nash has joined #tp17:54
*** mithro has joined #tp18:41
*** greywhind has joined #tp19:13
*** mithro has quit IRC19:14
*** mithro has joined #tp19:40
*** JeffM has quit IRC19:53
mithroyay, got my email inbox down to 10 emails19:59
mithrohow is everyone today?20:00
greywhindi'm good. you?20:00
mithropretty good20:00
mithrothe office is really empty today20:01
greywhindis that a good thing or a bad thing?20:01
mithrobit of both20:01
mithrogreywhind: any progress?20:02
greywhindmithro: haven't worked on it yet today. i will, though... got any ideas about why text isn't being correctly removed?20:03
mithroyou need to remove the actual object?20:03
mithro(from the panel?)20:03
greywhindmithro: hmm... i based my code on this wiki FAQ entry: http://wiki.wxpython.org/Frequently_Asked_Questions#head-517fb7426c6c5e97e6693ab5fdce73200fe8ccb720:05
tpbTitle: Frequently Asked Questions - wxPyWiki (at wiki.wxpython.org)20:05
mithrogreywhind: my guess is that DestroyChildren isn't quite recursive for some unknown reason20:06
greywhindmithro: 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
mithrowell, do you have multiple panels?20:09
mithroi think you have to call it on each panel20:10
mithrohow much longer are you going to be around?20:13
greywhindmithro: sorry, had to take a phone call20:14
mithroI'll probably be able to look at it during lunch20:14
greywhindmithro: 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 sizer20:17
mithrodo you call Update and Layout after the Destory Children call?20:17
greywhindmithro: just Layout()20:18
mithrohrm... do you have the code?20:18
greywhindmithro: yeah. i'll paste it20:18
greywhindhttp://rafb.net/p/nzRoxx92.html (80 lines)20:19
tpbTitle: Nopaste - No description (at rafb.net)20:19
greywhindi removed the DestroyChildren() call because it didn't seem to make a difference, by the way.20:19
mithrooh20:21
mithroI think you need the following20:21
mithrofor child in self.prop_sizerpanel.GetSizer().GetChildren():20:22
mithroself.prop_sizerpanel.RemoveChild(child)20:22
mithrochild.Hide()20:22
mithrochild.Destroy()20:22
mithrothis is what the code use to do20:27
mithro# Remove the previous panel and stuff20:27
mithroif hasattr(self, 'properties'):20:27
mithroself.properties.Hide()20:27
mithroself.design_ps.Remove(self.properties)20:27
mithroself.properties.Destroy()20:27
mithrodel self.properties20:27
mithrowhere self.properties was the base panel20:27
greywhindright. but i can't remove the entire panel, since it's not dynamically generated anymore.20:28
mithrowhy not?20:28
greywhindwell, it wouldn't be re-created for the next click - or would it?20:29
mithrothat panel should still be dynamically generated?20:29
greywhindno, it's defined in XRC - only its contents are dynamically generated20:29
mithroyou could just put another panel ontop of the XRC panel20:30
mithrobut you can probably just remove the XRC panel and manually re-add it20:30
mithrothe XRC stuff is only active during creation really20:31
greywhindwell, the panel is the same every time anyway - it's just the contents that need to change20:31
mithroafter that it's just a normal wx window20:31
mithroremoving the panel seems to be the cleanest way to remove all the contents20:31
greywhindby the way, the code you gave me earlier has an error:20:32
greywhindhttp://rafb.net/p/L9Uwh495.html (8 lines)20:32
tpbTitle: Nopaste - No description (at rafb.net)20:32
greywhindseems like "child" isn't of the right type?20:32
mithrogreywhind: yes that is correct, I'm not sure what GetChildren is returning20:32
mithrogreywhind: it was more pesudo code rather then actual working code20:33
greywhindmithro: ah. ok.20:33
mithrowithout your code being committed, I can't really provide working code :)20:36
greywhindmithro: seems like this shouldn't be so difficult...20:37
mithrogreywhind: that would be my theory20:37
mithroI didn't think this conversion would that you this long20:40
greywhindmithro: sorry about that - there've been quite a few issues to work out.20:41
mithrothings always take longer then expected :/20:41
* jotham ducks20:42
jothami think i've even forgotten how to program python20:42
mithrojotham: :/20:47
jothami need a C style and XML style pretty printer20:50
jothamlike one that can take both formats and give me a nice tabulated file20:50
greywhindmithro: 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 place20:50
mithrogreywhind: okay, a hint is to set the background color of the panel to something like hot pink20:51
mithrothen you can see if the panel is even in the right place20:52
greywhindmithro: hmm... good idea.20:52
mithrothat is something I learned from coding CSS stuff20:52
jothamuse firebug20:53
jothamit shows you everything20:53
jothamit's pretty much what you should have if you are dicking with html20:53
mithrojotham: this was before firebug really existed :P20:53
jothamyou'd think there would be a unified pretty printer20:56
greywhindmithro: ok, got it showing up correctly again, but it still has strange text display problems20:58
greywhindhow can it be totally destroyed and still re-appear with the same text on it?21:00
mithrogreywhind: print out the input and make sure you have the right input?21:01
greywhindmithro: hmm... maybe the text is added to something else...21:01
mithrogreywhind: that is another option21:02
mithromake sure the parent of the text is the panel you are destorying21:02
greywhindmithro: right... checking21:02
greywhindmithro: is it possible that the sizer of the panel is not being destroyed along with the panel itself?21:06
mithrogreywhind: not really21:06
*** Erroneous has quit IRC21:07
mithrogreywhind: do you want to commit it and let me have a look?21:09
greywhindmithro: maybe in a bit.21:09
*** tuna-fish has joined #tp21:18
mithrogreywhind: any luck?21:25
greywhindmithro: no. just getting crazier.21:26
mithro:/21:26
mithrogreywhind: commit it and I'll have a play21:32
greywhindmithro: i may be getting somewhere now... not sure.21:32
greywhindmithro: hah! got it!21:39
mithroyay!21:39
greywhindi'll push now, so you can see it and tell me if i need to do anything else.21:40
mithrookay21:40
CIA-9noegnud tpclient-pywx-incoming * r762382d7dac9 /windows/ (main/winDesign.py xrc/winDesign.py xrc/winDesign.xrc):21:51
CIA-9Fixed text-bunching bug in winDesign.py by reinstating the original method of generating21:51
CIA-9the list of properties, with a few modifications.21:51
greywhindmithro: try that out21:51
mithrogreywhind: any luck with Stars! btw?21:52
greywhindmithro: haven't tried it yet21:52
mithrogreywhind: first problem - things don't resize when the window resizes22:02
greywhindmithro; yeah... i found that if i didn't specify the size of each object, they would be 0 x 022:02
mithroyou need to tell them to auto expand22:03
greywhindmithro: how do i do that?22:03
mithrodepends on the sizer22:03
greywhindmithro: hmm... alright, i'll work on that tomorrow then.22:03
mithroyou need to look at wx.EXPAND and wx.GROW22:03
mithroand also the growable columns/rows in a flexgrid sizer22:03
mithrowell I'm thinking I might head to lunch22:34
mithronash: any luck with the job apps?23:26

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