ListCtrl Column Drag on Ubuntu

Hi,

I am developing a tool that uses the ListCtrl module. This tool is supposed to be able to run on Windows and Ubuntu and exhibit the same behaviour on both platforms. I have tested it on Windows and it works fine, but on the Ubuntu version the drag and drop for the columns does not work. I have done what I can reduce issues from version differences, Python and wxPython are the same for both platforms. I even used the demo on Ubuntu just to see if it was an issue with my code and the demo does the same thing.

So is this normal, or a known bug, or is there something I have to do in order to make this work?

Don’t know if this is needed but the environment I am using is as follows:

Ubuntu: 16.04 LTS 64-Bit

Python: 2.7.12

wxPython: 3.0

Thank you in advance.

Signed,

Alex

You need to provide _way_ more information.

Such as a minimal working example, the exact problem you are
seeing, and what you want to see happen.

Karsten

···

On Mon, Apr 03, 2017 at 01:31:43PM -0700, mccoder.man@gmail.com wrote:

So is this normal, or a known bug, or is there something I have to do in
order to make this work?

--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

Instead of providing an example can I instead point to the wxPython demo module for the ListCtrl… In it you can click on the the column header using the Left-Mouse button and hold down whlie dragging. If you do this you can change the order of the columns. This works if you run the demo on Windows but not on Ubuntu.

If this is not enough I can try to extract a working sample from the tool.

···

On Monday, April 3, 2017 at 2:07:01 PM UTC-7, Karsten Hilbert wrote:

On Mon, Apr 03, 2017 at 01:31:43PM -0700, mccod...@gmail.com wrote:

So is this normal, or a known bug, or is there something I have to do in
order to make this work?

You need to provide way more information.

Such as a minimal working example, the exact problem you are

seeing, and what you want to see happen.

Karsten


GPG key ID E4071346 @ eu.pool.sks-keyservers.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

I see. If that's the case I am inclined to conclude that the
GTK widget may not natively support that so you may need to
implement it on your own with the help of EVT_COL_DRAG etc.

Karsten

···

On Mon, Apr 03, 2017 at 02:42:15PM -0700, mccoder.man@gmail.com wrote:

Instead of providing an example can I instead point to the wxPython demo
module for the ListCtrl.. In it you can click on the the column header
using the Left-Mouse button and hold down whlie dragging. If you do this
you can change the order of the columns. This works if you run the demo on
Windows but not on Ubuntu.

--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

I’m not complete sure but I believe you need to base your grid control on wx.grid.Grid. I haven’t used wxPython in a while. I did check my grid control in Dabo (dGrid) and was able to move the columns (re-arrange the columns) using the left button on the mouse on Linux. You might want to check the code out at https://dabodev.com/

···

On Tue, Apr 4, 2017 at 12:13 AM, Karsten Hilbert Karsten.Hilbert@gmx.net wrote:

On Mon, Apr 03, 2017 at 02:42:15PM -0700, mccoder.man@gmail.com wrote:

Instead of providing an example can I instead point to the wxPython demo

module for the ListCtrl… In it you can click on the the column header

using the Left-Mouse button and hold down whlie dragging. If you do this

you can change the order of the columns. This works if you run the demo on

Windows but not on Ubuntu.

I see. If that’s the case I am inclined to conclude that the

GTK widget may not natively support that so you may need to

implement it on your own with the help of EVT_COL_DRAG etc.

Karsten

GPG key ID E4071346 @ eu.pool.sks-keyservers.net

E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

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 wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.