Re: pyLbc: very confused!

  • From: Alex Hall <mehgcap@xxxxxxxxx>
  • To: Jamal Mazrui <empower@xxxxxxxxx>
  • Date: Sun, 30 May 2010 23:59:14 -0400

Yes, I think I see most of it; I am not experienced enough in wx to
get it all, but I think I have the most important parts.
I have my wx frame created, and am opening dialogs using lbc on top of
my frame. I am suddenly getting strange problems with my frame not
closing with alt-f4, sometimes, and needing to hit ctrl-c in the shell
from where I opened my program to kill the process completely, even
when alt-f4 does work. I am telling my dialog
"parent=board.parentFrame", where board.parentFrame is the frame I am
using, but nothing improves. Are the two instances of wx.App not
getting along? If so, what should I do to get lbc dialogs to play nice
with my own wx frame, which is already there and set up with controls
and an accelerator table?

On 5/30/10, Jamal Mazrui <empower@xxxxxxxxx> wrote:
> Please look closely at the lbc_fruit.py example.  It shows how to get
> the value of an edit box and listbox.  It also shows how to complete a
> dialog with the ShowModal method.
>
> Jamal
>
>
> On 5/30/2010 8:17 PM, Alex Hall wrote:
>> Hello all,
>> I am starting to use pyLbc. It looks perfect for what I am doing, but
>> I have two rather large problems: first, my dialog is not showing my
>> controls, and second, I cannot figure out how to get values from it
>> once it does show up. Here is my code, called from inside a function:
>>   dlg=lbc.Dialog(title="Launch Harpoon missile")
>>   dlg.AddListBox(label="Select impact pattern:", names="cross pattern|x
>> pattern", values=0|1)
>>   dlg.AddTextCtrl(label="Center coordinates for missile strike:",
>> value=nav.getCoords(board.x,board.y))
>>   lbc.DialogShow(dlg)
>>
>> All I get is a dialog with title "ShowDialog" and an OK button; no
>> listbox, no input box. Once I get this working, how do I retrieve the
>> value of the input box and the value of the selected item in my
>> listbox to give to the function that created the dialog? TIA!
>>
>>
>


-- 
Have a great day,
Alex (msg sent from GMail website)
mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: