Changeset 1487 for trunk/peppy/actions/minibuffer.py
- Timestamp:
- 07/10/08 22:43:13 (4 months ago)
- Files:
-
- 1 modified
-
trunk/peppy/actions/minibuffer.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/actions/minibuffer.py
r1477 r1487 235 235 self.finish_callback() 236 236 else: 237 self.mode.removeMinibuffer(detach_only=True) 237 238 if text is not None: 238 239 error = self.action.processMinibuffer(self, self.mode, text) 239 240 if error is not None: 240 241 self.mode.frame.SetStatusText(error) 241 self.removeFromParent() 242 self.close() 243 #self.removeFromParent() 242 244 243 245 class IntMinibuffer(TextMinibuffer): … … 329 331 330 332 def SetFocus(self): 333 dprint(self) 331 334 self.win.saveSetFocus() 332 335 self.text.SetInsertionPointEnd() … … 379 382 380 383 self.text.Bind(wx.EVT_TEXT_ENTER, self.OnEnter) 384 self.win.Bind(wx.EVT_SET_FOCUS, self.OnFocus) 381 385 382 386 if self.initial is not None: … … 384 388 self.text.SetChoices(self.complete(self.initial)) 385 389 self.text.SetEntryCallback(self.setDynamicChoices) 390 #self.text.SetInsertionPointEnd() 386 391 387 392 self.win.saveSetFocus = self.win.SetFocus … … 389 394 390 395 def SetFocus(self): 396 dprint(self) 391 397 self.win.saveSetFocus() 398 self.text.SetInsertionPointEnd() 399 400 def OnFocus(self, evt): 401 dprint() 392 402 self.text.SetInsertionPointEnd() 393 403
