Hi Robin,
Thank you sir, it works like a charm now…
Rgds,
Devendran
Sr. Product Engineer
SSD Division
···
From: wxpython-users-request@lists.wxwidgets.org
Subject: wxpython-users Digest, Vol 14, Issue 165
To: wxpython-users@lists.wxwidgets.org
Date: Wed, 29 Apr 2009 21:43:30 -0700Send wxpython-users mailing list submissions to
wxpython-users@lists.wxwidgets.orgTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
or, via email, send a message with subject or body ‘help’ to
wxpython-users-request@lists.wxwidgets.orgYou can reach the person managing the list at
wxpython-users-owner@lists.wxwidgets.orgWhen replying, please edit your Subject line so it is more specific
than “Re: Contents of wxpython-users digest…”Today’s Topics:
- Re: TimeCtrl for touch screen usage (Robin Dunn)
- Re: ComboPopUp - show listctrl but with combotexthaving focus
(Robin Dunn)- Re: Using KILL_FOCUS for validation with a ‘Cancel’ button.
(Robin Dunn)- Re: wxGauge while processing data (Robin Dunn)
- Re: Testing your application (Robin Dunn)
- Re: Auto scroll TextCtrl only when at bottom (Robin Dunn)
- Re: draggable listbox? (Robin Dunn)
- Re: catching events from children (Robin Dunn)
- Re: FW: AuiMDIParent method issue (Robin Dunn)
- Get source of widget code so can subclass (Markandeya)
- RE: ComboPopUp - show listctrl but with combotext having
focus (Markandeya)
Message: 1
Date: Wed, 29 Apr 2009 20:05:40 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] TimeCtrl for touch screen usage
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F91584.2010801@alldunn.com
Content-Type: text/plain; charset=UTF-8; format=flowedCliff Xuan wrote:
Hi,
I’m trying to adjust the TimeCtrl widget in wx.lib.masked for touch
screen use. After fiddling the font size of the time box, and button
size of the spin button, I got something that nearly suits my need,
however, the white space on the time box is wasteful – see attachment.
Can anyone tell me how to shink the whitespace, please?Set the minsize to whatever you want it to be.
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 2
Date: Wed, 29 Apr 2009 20:05:46 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] ComboPopUp - show listctrl but with
combotexthaving focus
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F9158A.7000306@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedFrank Millman wrote:
Markandeya wrote:
Dear Friends of wxPython,
First, thank you for your help. Sorry, I am very frustrated
trying to make a combo box that will drop open without a
mouse click on got focus.
So have tried the wx.ComboPopup. In the Docs Demo and Frank
Millman code example the list control opens and it gets the
focus. I can’t get the focus back to the combo text box
without the list control going away , .dismiss().I spent a bit of time experimenting, but I also could not achieve a scenario
where you could type into the text control while the list of choices is
visible.Maybe you could achieve it by subclassing wx.TextCtrl, and displaying the
list of choices yourself when it gets focus. You could trap changes using
EVT_TEXT, search for the first matching string, and highlight it in the
list.Sorry I could not be more help. Maybe Robin has some ideas.
Sorry, nothing comes to mind.
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 3
Date: Wed, 29 Apr 2009 20:05:53 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] Using KILL_FOCUS for validation with a
‘Cancel’ button.
To: js@hipro.co.in, wxpython-users@lists.wxwidgets.org
Message-ID: 49F91591.2080404@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedJoe Steeve wrote:
I have a form where I let the user input a lot of data. I want to be
able to fill parts of the form based on what the user enters in the
first few text-ctrls. So, I trap the KILL_FOCUS of those text-ctrl
widgets.I also have a ‘Cancel’ button in the form to cancel the operation.
The problem is that: when the focus is in one of the text-ctrl widgets
(whose KILL_FOCUS is being handled), and the user clicks on ‘Cancel’
button, the KILL_FOCUS gets called and it annoys the user to enter a
valid value before handling the ‘Cancel’ button’s click event.What is the best way to fix this?
It might not be a perfect fit with what you are trying to do, but I’d
take a look at Validators.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 4
Date: Wed, 29 Apr 2009 20:06:16 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] wxGauge while processing data
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F915A8.6040508@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedGabriel wrote:
Hello,
My program allow user to open file, but this opening contains lot of
processing and it takes some time. I would like to create and show small
frame with gauge while program process data from file.I wrote small class for gauge (using wxPython demo, it’s great btw .)):
class FileOpenGauge(wx.Frame):
def init(self, parent):
wx.Frame.init(self, parent, title=“Analyzing…”,
pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE)
panel = wx.Panel(self, wx.ID_ANY)
self.g1 = wx.Gauge(panel, wx.ID_ANY, 50, (110, 50), (250, 25))
self.Bind(wx.EVT_TIMER, self.TimeHandler)
self.timer = wx.Timer(self)
self.timer.Start(100)
self.Show(True)
def del(self):
self.timer.Stop()
def TimeHandler(self, event):
self.g1.Pulse()Have you looked at wx.ProgressDialog?
and then i tried to create this gauge before calling method which
process data. But nothing appears.Because the event loop is blocked so there are no paint events, no timer
events, etc.Then i realized that i need threads
maybe and tried something like this:
LongRunningTasks - wxPyWiki (thread example) but i can’t
make it works.You should also read Non-Blocking Gui - wxPyWiki
So, is there some easy way to do this? Do i need threads?
Maybe. It depends on what your long running task is doing and whether
it can be reorganized to be performed in small chunks of if it must be
one contiguous process.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 5
Date: Wed, 29 Apr 2009 20:06:40 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] Testing your application
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F915C0.2000404@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedMark Guagenti wrote:
I can’t remember which PyCon talk it was but someone mentioned looking
at Chandler to see how they are doing testing. I looked briefly at
their code but couldn’t see where all there tests are located and ran.http://svn.osafoundation.org/chandler/trunk/chandler/tools/cats/
They do use wxPython so it would be interesting to see their
approach.I’m not sure if it’s changed at all in the past year but in a nutshell I
would say that it’s very complex and highly chandler-specific. The
testing framework needs intimate knowledge of Chandler and also the
framework used to build the Chandler UI, and also some customizations of
wxWidgets, so it’s not something that could easily be used for any other
application. That said, it does do a fairly good job of simulating a
user running the application.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 6
Date: Wed, 29 Apr 2009 20:07:12 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] Auto scroll TextCtrl only when at bottom
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F915E0.2000405@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedNathan Fillhardt wrote:
Hey All,
I have been trying to figure this out and I can’t seem to get it to
work. What I am trying to accomplish is to only auto scroll my output
window when the user is looking at the last line of output. I am using a
multi line txtctrl in which I am feeding output from a background
process so there is almost always text going into the control. What I
want is for the user to be able to look at lines of text without the
output window jumping to the bottom( disable auto scroll), but when they
are looking at the bottom line it should auto scroll for them. Right now
I am not using append on the textctrl so I am not worring about
wxPythons autoscroll, I am doig my scrollingmanually. The problem is I
can’t figure out when I am looking at the last line in the text control.
If the last line in the output is visable I want autoscroll, if the last
line is not visable then I will not autoscroll.If you’re not locked in to using a wx.TextCtrl for some reason then it
would be fairly easy to create a custom widget that displays text and
behaves that way. Otherwise, there are enough variations in the native
text widgets that doing that consistently will be tricky at best.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 7
Date: Wed, 29 Apr 2009 20:07:28 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] draggable listbox?
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F915F0.2090008@alldunn.com
Content-Type: text/plain; charset=windows-1252; format=flowedHamish McKenzie wrote:
i’m looking for a listbox-like widget that will let me drag re-order
items in it. ideally with some sort of visual cue as to where the item
being dragged will end up.I can’t seem to find one in the standard wxpython distro, does anyone
know of one that exists already?It’s not quite what you want (no DnD but has move up/down buttons
instead) but have you looked at EditableListBox? It’s just a layer
added on to wx.ListCtrl so it probably wouldn’t be too hard to duplicate
what it does in Python and then add DnD abilities too.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 8
Date: Wed, 29 Apr 2009 20:07:34 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] catching events from children
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F915F6.7090401@alldunn.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowedNathaniel Echols wrote:
I had been trying to do
this before:for child in self.GetChildren() :
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown, child). . .which didn’t work, probably because (again) the events don’t propagate.
Correct. See self.Bind vs. self.button.Bind - wxPyWiki
–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 9
Date: Wed, 29 Apr 2009 20:07:59 -0700
From: Robin Dunn robin@alldunn.com
Subject: Re: [wxpython-users] FW: AuiMDIParent method issue
To: wxpython-users@lists.wxwidgets.org
Message-ID: 49F9160F.7040909@alldunn.com
Content-Type: text/plain; charset=windows-1252; format=flowedDevendran Chandra wrote:
Hi,
i am developing a simple automation program at my place, and decided to
use wxpyhton to do it. I have a minor setback, which i hope some learned
user could help me out withI am unsure why the method self.SetActiveChild(pChildFrame) below
doesn’t work. My idea is to be able to highlight and choose the right
child frames at random. Attached is a working code. Is there anything i
am missing?In the implementation SetActiveChild doesn’t do anything other than set
a member variable to indicate the active window. It doesn’t change
which tab is selected like I would expect it to. Instead of (or maybe
in addition to) the SetActiveChild, try calling
self.GetClientWindow().SetSelection(num) where num is the page number to
be selected.–
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Message: 10
Date: Thu, 30 Apr 2009 09:58:23 +0530
From: Markandeya mrc55519@gmail.com
Subject: [wxpython-users] Get source of widget code so can subclass
To: wxpython-users@lists.wxwidgets.org
Message-ID:
f0c629100904292128p255232f8i8fd3a1b23e88298c@mail.gmail.com
Content-Type: text/plain; charset=“iso-8859-1”Dear Friends of wxPython,
I want to make a droppable combobox using a listCtrl and textCtrl. I need
the source code of these widgets so i can see how they work and make
changes/additions. For instance change the listCtrl search to a bsearch
algorithm to accept multiple key strokes. How do i get the codes. i
downloaded the source distribution of wxPython but couldn’t yet find the
source codes. I hope they are in Python and not just C++.
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200904=
30/b911cfeb/attachment-0001.htm
Message: 11
Date: Thu, 30 Apr 2009 10:09:01 +0530
From: Markandeya mrc55519@gmail.com
Subject: RE: [wxpython-users] ComboPopUp - show listctrl but with
combotext having focus
To: wxpython-users@lists.wxwidgets.org
Message-ID:
f0c629100904292139k2302b01blba7db81785791970@mail.gmail.com
Content-Type: text/plain; charset=“iso-8859-1”Thank you for your reply and suggestion. Can you tell me how to get the
source code for the wxPython widgets? so i can work on understanding and
subclassing them.
I also have found the Object List View control widget of Phillip Piper
ObjectListView — ObjectListView v1.2 documentation.
It has tremendous functionality, flexibility, and programmability. It
already does the bsearch in the list on whatever column was made sortable
-user can click to sort a cloumn- when the user types while in the
listCtrl. So a text box that shows and hides the Object ListView on Get/Lose
focus evts and the keystrokes from the Olv can be sent to the textbox which
will display them.I will give this a try and let you know. Markandeya
-------------- next part --------------
An HTML attachment was scrubbed…
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200904=
30/86fce759/attachment.htm
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-usersEnd of wxpython-users Digest, Vol 14, Issue 165
See all the ways you can stay connected to friends and family