Ticket #1126 (reopened defect)

Opened 1 year ago

Last modified 1 year ago

dGrid.findReplace()

Reported by: jonno Assigned to: ed
Priority: minor Milestone: No Milestone
Component: ui Version: 0.8.3
Keywords: find findReplace dGrid GetValue uiApp Cc:

Description

Platform: Win
Python Version: 2.5.1 on win32
Dabo Version: Version 0.8.3; Revision ~3803
UI Version: 2.8.7.1 on wxMSW

In a wizard-built app, in the Grid, i hit Ctrl+F 
and got a search/replace dialog (very nice :)  
But when i tried to find a word, got this:

Traceback (most recent call last):
  File "E:\Python\lib\site-packages\dabo\ui\uiwx\uiApp.py", line 759, in OnFind
    value = win.GetValue()
TypeError: GetValue() takes exactly 3 arguments (1 given)

-- jh

Change History

12/23/07 05:14:48 changed by ed

  • owner changed from somebody to ed.
  • status changed from new to assigned.

Confirmed. We never tested 'Find' with grids before, because we always assumed that people would use incremental search to find stuff.

I'll try to implement a basic sequential Find for the grid, since it would be a cool thing to have.

12/23/07 09:12:13 changed by ed

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in the latest Subversion commit ([3842]). Please test, and if there are no problems, I will release to Web Update.

01/02/08 20:54:03 changed by jonno

  • keywords changed from find GetValue uiApp to find findReplace dGrid GetValue uiApp.
  • status changed from closed to reopened.
  • resolution deleted.
  • summary changed from Find dialog, uiApp.py, win.GetValue() to dGrid.findReplace().

Great, thank you :)

Just a small alteration needed: it works only with ascii text.

In dGrid, in findReplace(), could you change all str() to unicode(). I tried that and it worked OK.

Thanks

-- jh