MrNaz | i really wish bullfrog were still around... peter molyneux or however you spell his crazy name was king of gameplay |
Wild_Cat | but thanks to duck-typing and conventions, we don't care that much. |
twb | Ugh. Stop waving around "duck typing" like it's something special |
ironfroggy | twb: there are inheritences but things dont have to inherit to be the same kind of thing |
Wild_Cat | MrNaz: he's still around at Lionhead. Fable, Black & White... |
MrNaz | yea i really want another syndicate that doesnt blow... syndicate wars was ok, but it required too much meat in the PC to really appeal to the mainstream |
twb | MrNaz: you mean CPU, RAM, GPU resources? |
MrNaz | twb syndicate wars was released in the day before the term "GPU" existed |
twb | You mean like nethack and ADVENT? |
MrNaz | the 3dfx cards were released about a year after synd wars came out iirc going back quite a quile now... stretching my memory a bit here |
frego | Hello, how to force an argument of a function to be a socket object? |
Habbie | frego, why? |
MrNaz | best way i know to force an argument is to have a gun or really big stick |
frego | Habbie: I have to pass a socket to a classe but python tells me it's a string :/ |
baba-andrea | gpolo: you intend int(x) and after for restore uinicode value unicode(x) |
gpolo | baba-andrea, well, yes. but why would you "restore" it ? you didnt remove it from there baba-andrea, did you figured out that problem with tab ? Whenever I would answer you already left |
baba-andrea | gpolo: I need to restore for re-insert in the textctrl for watch the user that can decide if is right or not and after he can save with pickel into a dict into a file gpolo: is right or I make a big mistake? |
gpolo | baba-andrea, if you are getting this data from a file, then it is ok |
baba-andrea | gpolo: yes I can resolve the tab problem, I put a panel into the frame and after I use the self.textctrl for connect the control on the panel and now I can use the default tab issue |
frego | neverming I typed __init() instead of __init__() |
gpolo | baba-andrea, yes, the parent has to have the tab traversal flag baba-andrea, a frame doesnt have, a panel does |
baba-andrea | gpolo: no I get this data from the users and after I save on a file |
fab31 | hi |
gpolo | baba-andrea, I dont get it then, why you need to do conversions ? just do the conversion before saving it |
baba-andrea | gpolo: I get the value from textctrl (unicode), change in (int) for do the calculates, re-change in unicode for reset the textctrl value label for permit the user to control the result. After I save this date into a file. I don't know if is the right way, what do you think? |
gpolo | baba-andrea, probably it is if it is working, I dont fully understand what are you doing |
baba-andrea | gpoli: self.totscontato = wx.TextCtrl(self.panel, -1, '') this mean that the textctrl is empty |
twb | Can I define an exception that's local to the current function? |
arkanes | twb: yes, but it would be useless to do so |
baba-andrea | gpolo: self.totscontato = wx.TextCtrl(self.panel, -1, unicode(result)) now I try to reset the value that appear on the screen in the textctrl control after the calculates |
arkanes | note that exceptions are just classes and aren't epscial except by convention |
twb | Well since there are no continuations, there's no other way for me to create short-cutting flow, AFAICT |
gpolo | baba-andrea, paste a sample code, it makes non-sense |
arkanes | you can use generators to do that, too but yeah, using exceptions to break nested flow works |