Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wxGUI Field calculator wx.ListBox widget choices argument #460

Merged
merged 1 commit into from Mar 27, 2020

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Mar 26, 2020

Reproduce:

  1. Add some vector map layer in Layer Manager
  2. Open Attribute Table Manager
  3. On the Browse data page right click on the some column to invoke menu and click on the Field calculator menu item

Error message appear in the Console page:

Traceback (most recent call last):
  File "/usr/local/grass79/gui/wxpython/dbmgr/base.py", line
621, in OnFieldCalculator

self._col).GetText())
  File
"/usr/local/grass79/gui/wxpython/dbmgr/sqlbuilder.py", line
635, in __init__

modeChoices=modeChoices, layer=layer)
  File
"/usr/local/grass79/gui/wxpython/dbmgr/sqlbuilder.py", line
82, in __init__

self._doLayout(modeChoices)
  File
"/usr/local/grass79/gui/wxpython/dbmgr/sqlbuilder.py", line
708, in _doLayout

style=wx.LB_SORT)
TypeError
:
ListBox(): arguments did not match any overloaded call:
  overload 1: 'parent' is not a valid keyword argument
  overload 2: argument 'choices' has unexpected type
'dict_keys'

@petrasovaa petrasovaa merged commit 3dbe012 into OSGeo:master Mar 27, 2020
@tmszi tmszi deleted the fix_open_field_calculator_dialog branch July 28, 2020 07:14
@neteler neteler added this to the 8.0.0 milestone Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants