Opened 16 years ago

Closed 16 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)

in reply to:  description ; comment:1 by cmbarton, 16 years ago

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

in reply to:  1 ; comment:2 by cmbarton, 16 years ago

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

in reply to:  2 comment:3 by cmbarton, 16 years ago

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 by neteler, 16 years ago

Cc: martinl added; landa.martin@… removed

comment:5 by neteler, 16 years ago

Resolution: fixed
Status: newclosed

Works nicely now! Thanks.

Note: See TracTickets for help on using tickets.