wxNotebook on a wxPanel.. how?

2005-03-14 Thread phark52
I have a wxFrame. On it is a wxNotebook, the Notebook ctrl has 5 tabs (Each one is a wxPanel.) On one of the tab pages (panels) I want to add another notebook ctrl. I get no errors but nothing shows up on the panel.. why is that? If I add a button or checkbox to the sizer on that panel, it shows. A

Re: wxNotebook on a wxPanel.. how?

2005-03-14 Thread phark52
The above code I pasted was not correct. I pasted an older version. The sizer.Add() line should of been sizer.Add(self.nb) -- omit the (self). but I fixed the problem. I had to change that same line to sizer.add(self.nb, 1, wxEXPAND|wxALL) -- http://mail.python.org/mailman/listinfo/python-list

Writing C readable bitfield structs?

2005-03-16 Thread phark52
How would I go about writing a bitfield that can be read by my C app? I want to pack a few bools into one int. I know an extended module exists (npstruct) which helps you do this but I want to do it manually or using one of the standard modules. -- http://mail.python.org/mailman/listinfo/python-

Re: Writing C readable bitfield structs?

2005-03-16 Thread phark52
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Cappy2112 <[EMAIL PROTECTED]> wrote: > >there is a bitfiled mainpulator class inthe Cookbook, but I don't > >understand his explanation, and the example given doesn't really show > >off the features of the class. > > I assume you're talking abou

Re: Writing C readable bitfield structs?

2005-03-17 Thread phark52
Anyone have any idea? [EMAIL PROTECTED] wrote: > Roy Smith wrote: > > In article <[EMAIL PROTECTED]>, > > Cappy2112 <[EMAIL PROTECTED]> wrote: > > >there is a bitfiled mainpulator class inthe Cookbook, but I don't > > >understand his explanation, and the example given doesn't really > show > > >of