Questions tagged [wxnotebook]

46 questions
6
votes
2 answers

wxNotebook Close Button?

I'm developing a notepad app using wxWidgets (the C++ version) and I'm working on implementing multi-file support. Using the wxNotebook class, I can't seem to find any documentation on adding a close button to the pages so I can easily close…
Blank
  • 7,088
  • 12
  • 49
  • 69
5
votes
3 answers

wxPython: Disable a notebook tab?

Is there anyway to disable a notebook tab? Like you can with the Widgets themselves? I have a long process I kick off, and while it should be pretty self-explanatory for those looking at it, I want to be able to prevent the user from mucking…
chow
  • 484
  • 2
  • 8
  • 21
4
votes
1 answer

Create tab blinking effect (like IM programs) using wxNotebook

How can I Create Tab blinking effect like IM programs do using wxNotebook? A good example of this is would be any tabbed IM program that blinks to show the user that they received a new IM.
Chris Andrews
  • 1,881
  • 3
  • 21
  • 31
4
votes
1 answer

How to create a wxpython notebook with 2 panels splitted horizontally?

I'm trying to build something like below: It's a notebook with 2 panels, split horizontally. The panel on top is also split into 2, each split containing a wx.grid object. I have tried the code below, but 2 grids on top panel do not show up: class…
alwbtc
  • 28,057
  • 62
  • 134
  • 188
2
votes
1 answer

wxNotebook - How I can get height and/or wxSize value of a single tab?

I'm writing some wxWidgets samples for educational purposes. My problem is simple: I'm using wxNotebook, and I need some trick to get current size of a single tab, especially height. In simple terms, if I place a wxNotebook inside a wxFrame which…
IT.
  • 311
  • 1
  • 5
  • 24
2
votes
1 answer

Add Notebook Page in wxpython

I am running a wxpython application. Within the application i have a panel that contains a notebook with some number of notebook pages/tabs. On a button press (wx.button), i would like to be able to clear one of the notebook pages and replace it…
mcfly
  • 1,151
  • 4
  • 33
  • 55
2
votes
1 answer

AuiNotebook - Get clicked tab

I am currently using some wxPython's AuiNotebook in one of my projects and I have a problem that can't manage to solve. I think there should be a simple solution but can't manage to find it. I have created a new class derived from…
Morwenn
  • 21,684
  • 12
  • 93
  • 152
1
vote
2 answers

Programmatically Add/Remove tabs on wxNotebook by PageText

I need to be able to programmatically add and remove tabs on a wxNotebook by the text/label that is displayed on each tab. In windows, using a tab control and tab pages, I would be able to reference each tab by a key. The tab control has a map of…
Chris Andrews
  • 1,881
  • 3
  • 21
  • 31
1
vote
1 answer

How can I make a sizer expand to the whole wxNotebook page?

I have a wxNotebook with two added pages. Each page uses a wxFlexGridSizer to manage the various widgets on each page. The first page has three columns of widgets, the second page only two. The first page is wider than the second page. The notebook…
Simon
  • 405
  • 2
  • 8
1
vote
1 answer

How o Delete ALL Pages of agw.aui.notebook in One shot?

I have a auiNotebook built from agw library. Now i have added few pages Now i have to delete ALL pages at one shot. Please let me know how to do this. Or is there any method which gives me List of Page Indexs for All Added Pages so that i can use…
abhishek
  • 51
  • 1
  • 2
1
vote
1 answer

wxhaskell notebook with imageTag segfaults

I just can't get imageTab to run. I get a Segmentation fault: 11. This is my code. Does anybody know what to do? import Graphics.UI.WX import Graphics.UI.WXCore main :: IO () main = start gui gui :: IO () gui = do f <- frame [] fp <-…
Schoon
  • 394
  • 1
  • 9
1
vote
0 answers

wxPython: Setting Value into Sheet in thread

I want to set value into sheet using thread. import time import wx from wx.lib import sheet from threading import Thread EVT_RESULT_ID = wx.NewId() def EVT_RESULT(win, func): win.Connect(-1, -1, EVT_RESULT_ID, func) class…
Sanjay Jain
  • 651
  • 1
  • 8
  • 10
1
vote
1 answer

Transparent Notebook Page/Setting Background Image for Notebook Pages in wxPython

I am attempting to create a program using wxPython in which uses a tabbed notebook. I would like to set the background of the pages in the notebook to a single image. I was thinking that I could just set the background of the wxPanel containing the…
Shelby V
  • 11
  • 3
1
vote
1 answer

How to get the newly selected page index upon a notebook changed page event with wxHaskell?

Below is a Haskell program which launches a wxHaskell notebook. It works, except that I cannot manage to handle a page change event so as to get the index of the newly selected page. I get the previous one instead (see comment "PROBLEM" in the code…
basil85
  • 11
  • 3
1
vote
2 answers

wxpython communication between notebook and main frame

I have a notebook whose parent is the main frame of the application. The main frame also has a panel showing a chart to the side of the notebook, a menu bar and a status bar. The notebook has a couple of pages and each page has some nested panels.…
jramm
  • 6,415
  • 4
  • 34
  • 73
1
2 3 4