Well, I have searched every where on using tabs in wxpython. So far I have
found nothing that doesn't look overly complicated and the examples seem to
indicate multiple functions to accomplish what I thought should be a
straight forward method(?). The book “wxpython in action” doesn't seem to
address using tabs at all. At least I haven't found it yet.
One thing that has me confused is a example script from that book, the tabs
work as expected. Using a script that I coded, the tab key doesn't do
anything at all. The only difference between the scripts is that the one
that works (example code) is based on TextCtrl located is using manual
positioning and the script I generated (no tab key function) is using
FlexGrid sizer for widget placement. I can't figure that out and from what I
find searching on line is that using the tab key in wxpython just doesn't
seem to work?
I have looked at using pyQt , but to change now would be like taking 10
steps backward.
Well, I have searched every where on using tabs in wxpython. So far I have
found nothing that doesn't look overly complicated and the examples seem to
indicate multiple functions to accomplish what I thought should be a
straight forward method(?). The book “wxpython in action” doesn't seem to
address using tabs at all. At least I haven't found it yet.
One thing that has me confused is a example script from that book, the tabs
work as expected. Using a script that I coded, the tab key doesn't do
anything at all. The only difference between the scripts is that the one
that works (example code) is based on TextCtrl located is using manual
positioning and the script I generated (no tab key function) is using
FlexGrid sizer for widget placement. I can't figure that out and from what I
find searching on line is that using the tab key in wxpython just doesn't
seem to work?
Can you attach your code and I am sure we can help you.
wxPython is a large and very powerful library and it takes some time to get going with it.
If you haven't already done so have a look at the wxPython demo, it is a great resource.
If you run into something you can't figure out don't hesitate to post here, but in most cases you need to show at least a snippet of code or very often it is even better attaching a self contained sample application - MakingSampleApps - wxPyWiki
In most cases you will get an answer in a very very short time, sometimes within hours and rarely more then a day or so.
Mike, I don't see a icon or anything that implies a "attach a file" function
on the screen.
Are you indicating that I should just do that within gmail ? I am at the wxpython-user@googlegroups.com as I am responding here(?). I idid notice
there is a upload a file option in the message move tab. so that must be it?
I will give that a try, Thanks for for the help. I got used to using user
forums and that process seems to make it pretty easy to post code.
So, now I will try the "upload a file" method.... XXXGasChk.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5720888/XXXGasChk.py>
OK, thanks Mike, I see the file is uploaded. As a reminder what I am posting
about, this file has NO tab key functions. There is another file , modified
from a example in the book "wxpython in action" (I will upload that as well)
and that simple script has tab key functions as expected. I can not see what
may be creating the original file in the previous post from not allowing the
tab key to not work. XXXGasChk.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5720889/XXXGasChk.py>
This is the file I referred to in the earlier post . This is a simple file
modified from the book (wxpython in action" and the tab key does work here.
So, I can't understand why the tab key works here and not the earlier file
XXXGasChk.py. Sorry for the wrong post. firststart.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5720890/firststart.py>
Also, I did not upload the file version that was cleaned up with all
unnecessary code that did not help to demonstrate the code with out the
experimental fluff.
Also, I did not see a very good method to edit the post , so I will re post
here (again...) and use the better attachment. XXXGasChk.py
<http://wxpython-users.1045709.n5.nabble.com/file/n5720891/XXXGasChk.py>
This should be the edited version in the previous post.
Well, I have searched every where on using tabs in wxpython. So far I have
found nothing that doesn't look overly complicated and the examples seem to
indicate multiple functions to accomplish what I thought should be a
straight forward method(?). The book “wxpython in action” doesn't seem to
address using tabs at all. At least I haven't found it yet.
One thing that has me confused is a example script from that book, the tabs
work as expected. Using a script that I coded, the tab key doesn't do
anything at all. The only difference between the scripts is that the one
that works (example code) is based on TextCtrl located is using manual
positioning and the script I generated (no tab key function) is using
FlexGrid sizer for widget placement. I can't figure that out and from what I
find searching on line is that using the tab key in wxpython just doesn't
seem to work?
You are creating a panel, but putting all the controls directly on the frame. The tab-traversal functionality is implemented in wx.Panel and some other classes intended to be used as widget containers.
Mike, I don't see a icon or anything that implies a "attach a file" function
on the screen.
Are you indicating that I should just do that within gmail ? I am at the
wxpython-user@googlegroups.com as I am responding here(?).
I do it via email, but I also see an "attach a file" link just below the subject on a new topic and just below my ID on a reply.
Thanks Robin. Is there a chapter in your book I should refer to in order to
get this straight in my mind?
While experimenting with different files (scripts) where the tabs work, I
delete everything in the sample script that places widgets via the Add()
method and then just place a few objects of my own. This still doesn't seem
to work either. For example, I attempted to use the realworld.py script and
did not have success there either.
Thanks for your response. I will use the realworld.py example code again and
pay closer attention to
where the widgets are placed. In the previous attempt, I eliminated almost
all of the widgets, didn't use the Add() method on but a few widgets. I also
only specified one sizer. But, I probably made mistakes and I will take
another look again.