Opened 12 years ago

Closed 12 years ago

#9 closed defect (fixed)

wxgrass: startup window does't sort locations/mapsets alphabetically

Reported by: neteler Owned by: grass-dev@…
Priority: major Milestone: 6.3.0
Component: Python Version: unspecified
Keywords: Cc: martinl
CPU: Unspecified Platform: Unspecified

Description

The list of locations/mapsets in the wxgrass GUI is not sorted alphabetically. A fix is needed in gui/wxpython/gis_set.py to

  • sort locations list, but keep mapsets aligned to sorted locations (simple |wx.LB_SORT doesn't work here)
  • sort mapsets list; but keep PERMANENT on top of mapsets list

Change History (5)

comment:1 in reply to:  description ; Changed 12 years ago by cmbarton

Replying to neteler:

The list of locations/mapsets in the wxgrass GUI is not sorted alphabetically. A fix is needed in gui/wxpython/gis_set.py to

  • sort locations list, but keep mapsets aligned to sorted locations (simple |wx.LB_SORT doesn't work here)

My locations are sorted fine. In fact, the sorting is better in wxPython for me than in TclTk?, since myLocation and MyLocation? sort together rather than have all capitalized locations first, with "alocation" following "Zlocation".

How is your systems misbehaving specifically? Which platform and wxPython/Python versions are you using?

  • sort mapsets list; but keep PERMANENT on top of mapsets list

This would be convenient. Currenly, PERMANENT sorts in the P's of mapsets. Probably not too hard to fix.

Michael

comment:2 in reply to:  1 ; Changed 12 years ago by cmbarton

Cc: landa.martin@… added

Replying to cmbarton:

Replying to neteler:

The list of locations/mapsets in the wxgrass GUI is not sorted alphabetically. A fix is needed in gui/wxpython/gis_set.py to

  • sort locations list, but keep mapsets aligned to sorted locations (simple |wx.LB_SORT doesn't work here)

My locations are sorted fine. In fact, the sorting is better in wxPython for me than in TclTk?, since myLocation and MyLocation? sort together rather than have all capitalized locations first, with "alocation" following "Zlocation".

How is your systems misbehaving specifically? Which platform and wxPython/Python versions are you using?

  • sort mapsets list; but keep PERMANENT on top of mapsets list

This would be convenient. Currenly, PERMANENT sorts in the P's of mapsets. Probably not too hard to fix.

Michael

I fixed the mapset list (at least for my system) so that PERMANENT shows up at the top.

Michael

comment:3 in reply to:  2 Changed 12 years ago by cmbarton

Replying to cmbarton:

Replying to cmbarton:

Replying to neteler:

The list of locations/mapsets in the wxgrass GUI is not sorted alphabetically. A fix is needed in gui/wxpython/gis_set.py to

  • sort locations list, but keep mapsets aligned to sorted locations (simple |wx.LB_SORT doesn't work here)

My locations are sorted fine. In fact, the sorting is better in wxPython for me than in TclTk?, since myLocation and MyLocation? sort together rather than have all capitalized locations first, with "alocation" following "Zlocation".

How is your systems misbehaving specifically? Which platform and wxPython/Python versions are you using?

  • sort mapsets list; but keep PERMANENT on top of mapsets list

This would be convenient. Currenly, PERMANENT sorts in the P's of mapsets. Probably not too hard to fix.

Michael

I fixed the mapset list (at least for my system) so that PERMANENT shows up at the top.

Michael

Had some some today and hope that I fixed the sorting issue. I think it looks OK on my Mac because I remember something about Mac directories being automatically alpha sorted, whereas Linux ones are not.

So I've forced sorting of the location and mapset lists. Let me know if it works. If so, this ticket can be marked as resolved.

Michael

comment:4 Changed 12 years ago by neteler

Cc: martinl added; landa.martin@… removed

comment:5 Changed 12 years ago by neteler

Resolution: fixed
Status: newclosed

Works nicely now! Thanks.

Note: See TracTickets for help on using tickets.