Is it possible to gray out a notebook tab? or having something
similar.
I have a notebook with two pages, page1 and page2. I'm doing some
task "on page1", I want to disable the selection of page2 as
long the task on page1 is running.
I'have tried vetoing, I do not figure out how to make it.
def veto_it(evt):
if should_veto:
evt.Veto()
else:
evt.Skip()
nb.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, veto_it)
- Josiah
···
jmf <jfauth@bluewin.ch> wrote:
Is it possible to gray out a notebook tab? or having something
similar.
I have a notebook with two pages, page1 and page2. I'm doing some
task "on page1", I want to disable the selection of page2 as
long the task on page1 is running.
I'have tried vetoing, I do not figure out how to make it.
> Is it possible to gray out a notebook tab? or having something
> similar.
>
> I have a notebook with two pages, page1 and page2. I'm doing some
> task "on page1", I want to disable the selection of page2 as
> long the task on page1 is running.
>
> I'have tried vetoing, I do not figure out how to make it.
>
> Jean-Michel Fauth, Switzerland
Have you tried something like the following:
should_veto = 0
def veto_it(evt):
if should_veto:
evt.Veto()
else:
evt.Skip()
You can "grey out" (deactivate) a tab and make it unselectable with a single
function call. If it's not too much an overkill for your needs (and
obviously, if you like the widget )
though it is not a real wx question, I could not get any help on other
lists ...
I want to capture the text marked/ highlighted in any win32 application, i.e. Word
for further processing.
I played around w/ win32com, but unless I do not know the last active
window and what application it runs there seems to be no way to get
out what I need.
What I do now is I make the user copy marked text to the clipboard and
copy it from there...
Any help, hints, suggestions, snippets ???
its a microsoft spy++ like inspection software. With this software you can inspect any running win32 application and it should be possible to get the marked text out of it. There is also a code example in C (sorry, don't remember the url in the moment) how to build such a inspection software.
I've tried to build a screen grabbing software with python a few month ago. I was able to rebuild this code example with the pywin32 extension in 'pure python' and it was possible to grep some parts of the application (like buttons or textcontrols) into
a bmp file.
Maybe you have to investigate a bit, but it should also be possible to extrakt the marked/ highlighted text.
regards,
Jürgen
the_shelter schrieb:
···
Hi,
though it is not a real wx question, I could not get any help on other
lists ...
I want to capture the text marked/ highlighted in any win32 application, i.e. Word
for further processing.
I played around w/ win32com, but unless I do not know the last active
window and what application it runs there seems to be no way to get
out what I need.
What I do now is I make the user copy marked text to the clipboard and
copy it from there...
Any help, hints, suggestions, snippets ???
Cheers,
the_shelter
mailto:pdftex@the-shelter.de
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org