comparison orpg/tools/predTextCtrl.py @ 27:51428d30c59e ornery-orc

Traipse 'OpenRPG' {091003-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: Adds menu changes to draw attention to important updates, errors, or other events. Traipse URL is now included in the repos tab and is set as default. Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. Fixes CherryPit misspelling. Makes Traipse Suite 'Attention' item portable, and executes it on 'Critical' debug notices. Adds incomplete Shift + Enter to Text Entry, currently creates a 'Critical' warning. New default Lobby Map, designed for Traipse. Feel free to change it. Updates to Server GUI: * Admin can Ban from Backend. * Admin can Modify Ban List and Un Ban users. * Server GUI finds your Lobby Name * New users default as Lurker unless a Role is set Cleaner TraipseSuiteAttention portability and clean up in Main. Die Roll Commands addition from Core code allowing Math Ordering with ()'s New About Dialog. A more uniform About Dialog. Corrects image loading of duplicate images.
author sirebral
date Sat, 03 Oct 2009 18:49:37 -0500
parents 265b987cce4f
children ff154cf3350c
comparison
equal deleted inserted replaced
22:8b168989c344 27:51428d30c59e
32 ## 32 ##
33 33
34 import string 34 import string
35 from orpg.orpg_windows import * 35 from orpg.orpg_windows import *
36 from wx.lib.expando import ExpandoTextCtrl 36 from wx.lib.expando import ExpandoTextCtrl
37 from orpg.tools.orpg_log import logger
37 38
38 # This line added to test CVS commit 39 # This line added to test CVS commit
39 40
40 ## 41 ##
41 ## Class Definitions 42 ## Class Definitions
432 # moving the insertion point to the spot directly afterwards is 433 # moving the insertion point to the spot directly afterwards is
433 # equivalent to acceptance. Without this, the next typed key would 434 # equivalent to acceptance. Without this, the next typed key would
434 # clobber the prediction. 435 # clobber the prediction.
435 436
436 return # Don't pass tab on in this case 437 return # Don't pass tab on in this case
438 elif event.GetKeyCode() == wx.WXK_RETURN and event.ShiftDown():
439 logger.exception('Shift + Enter Not completed, 439, predtextCtrl', True)
440 st = self.GetValue()
441 st += '<br />'
442 return
443
437 444
438 elif event.GetKeyCode() == wx.WXK_RETURN: # We want to hook returns, so that we can update the word list 445 elif event.GetKeyCode() == wx.WXK_RETURN: # We want to hook returns, so that we can update the word list
439 446
440 st = self.GetValue() # Grab the text from the control 447 st = self.GetValue() # Grab the text from the control
441 newSt = "" # Init a buffer 448 newSt = "" # Init a buffer