• Advertisement
Sign in to follow this  

I need help with tabs! -Python-

This topic is 3949 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I am working on tabs for my program and I have been looking on the wxPython example programs and I looked at the create a tab. So I got rid of the textarea in my program and added it but I get errors! Code to create the tab:
         def OnNew(self,  event):
                    frame = wx.GetApp().CreateDocumentFrame(self, doc)
                    sizer = wx.BoxSizer()
                    font, color = self._GetFontAndColorFromConfig()
                    self.control = self._BuildTextCtrl(frame, font, color = color)
                    self._textCtrl.Bind(wx.EVT_TEXT, self.OnModify)
                    sizer.Add(self._textCtrl, 1, wx.EXPAND, 0)
                    frame.SetSizer(sizer)
                    frame.Layout()
                    frame.Show(True)
                    self.Activate()
                    return True

[Edit: use [source] to format Python code - Oluseyi] Any help on creating or helping me with making tabs?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by ajm113
Any help on creating or helping me with making tabs?

First and foremost, when seeking help online, always try to provide as much information as possible It makes it easier for people to figure out your problem, and thus suggest fixes. For example:

Quote:
I ... added it but I get errors!

What errors, specifically?

Quote:
So I got rid of the textarea in my program and added it...

Can we see the code?

Share this post


Link to post
Share on other sites
Ah, its a butt load of code. I would post the hole thing put it mite take 2 pages on here. I will see if I can get it as a .txt and host it for you.

EDIT: Source code of my scripter.

Share this post


Link to post
Share on other sites
Sorry for double posting, but doesn't anyone know wxPython here or am I asking on the wrong site?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement