wx.listctrl strange lagging issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wx.listctrl strange lagging issue

Nathan Smith
Hi there.

I wondered if any of you might be able to help me debug an issue i am
having.

I have a screen which contains a wx.listctrl.

When ever focus is set to this, as it gains focus it seems to lag for
about a second.

Each time i use the arrow keys to move, there is a rough second of lag
before it jumps to the next item, but this lag seems regardless of the
item count, so for example, if I press up arrow twice quickly, it still
lags only 1 second, not too.

Further, if I click on a list item, then click back, this is what
happens in my code:

close panel 2,

reset key bindings,

show panel 1,

set focus to list.


Yet when trying this, it first comes up not responding, and then the
program closes entirely.

Finally the last puzzle.

this only happens if I compile the code using pyinstaller, but not if I
run it uncompiled.

I have no ideas on debugging, but just wondered if anyone knows of a
route to take.

thanks

Nate

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/291f1837-daa7-4e07-e195-89b47090c5ea%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wx.listctrl strange lagging issue

Robin Dunn

First, it will be helpful to know more about it. What's the platform? wxPython version? How many items are in the listctrl? What listctrl style flags being used? What do you mean by "reset key bindings"? What does the PyInstaller spec file do? Can you make a small runnable sample that demonstrates the problem? (Note that makings a sample will answer most of the questions and probably most that will come up later.)

--
Robin


On Wednesday, July 3, 2019 at 12:07:45 PM UTC-7, Nathan smith wrote:
Hi there.

I wondered if any of you might be able to help me debug an issue i am
having.

I have a screen which contains a wx.listctrl.

When ever focus is set to this, as it gains focus it seems to lag for
about a second.

Each time i use the arrow keys to move, there is a rough second of lag
before it jumps to the next item, but this lag seems regardless of the
item count, so for example, if I press up arrow twice quickly, it still
lags only 1 second, not too.

Further, if I click on a list item, then click back, this is what
happens in my code:

close panel 2,

reset key bindings,

show panel 1,

set focus to list.


Yet when trying this, it first comes up not responding, and then the
program closes entirely.

Finally the last puzzle.

this only happens if I compile the code using pyinstaller, but not if I
run it uncompiled.

I have no ideas on debugging, but just wondered if anyone knows of a
route to take.

thanks

Nate

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/e4732ac4-1c4a-4a56-a293-73e21d0d78ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wx.listctrl strange lagging issue

Nathan Smith

Hello Robin,

After testing several other programs I have built, I have actually come to the conclusion there is physically nothing wrong with the wx.listctrl at all in the way I've made it, and it is instead, I think, my screen reader that is being a complete pain.

To that end, I apologize.

thank you.

Nathan

On 03/07/2019 21:28, Robin Dunn wrote:

First, it will be helpful to know more about it. What's the platform? wxPython version? How many items are in the listctrl? What listctrl style flags being used? What do you mean by "reset key bindings"? What does the PyInstaller spec file do? Can you make a small runnable sample that demonstrates the problem? (Note that makings a sample will answer most of the questions and probably most that will come up later.)

--
Robin


On Wednesday, July 3, 2019 at 12:07:45 PM UTC-7, Nathan smith wrote:
Hi there.

I wondered if any of you might be able to help me debug an issue i am
having.

I have a screen which contains a wx.listctrl.

When ever focus is set to this, as it gains focus it seems to lag for
about a second.

Each time i use the arrow keys to move, there is a rough second of lag
before it jumps to the next item, but this lag seems regardless of the
item count, so for example, if I press up arrow twice quickly, it still
lags only 1 second, not too.

Further, if I click on a list item, then click back, this is what
happens in my code:

close panel 2,

reset key bindings,

show panel 1,

set focus to list.


Yet when trying this, it first comes up not responding, and then the
program closes entirely.

Finally the last puzzle.

this only happens if I compile the code using pyinstaller, but not if I
run it uncompiled.

I have no ideas on debugging, but just wondered if anyone knows of a
route to take.

thanks

Nate

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/e4732ac4-1c4a-4a56-a293-73e21d0d78ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/834f0434-d008-1df5-de09-30f686da9cf4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.