Python win32con.EM_REPLACESEL Examples

The following are 1 code examples of win32con.EM_REPLACESEL(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module win32con , or try the search function .
Example #1
Source File: control_output.py    From dragonfly with GNU Lesser General Public License v3.0 5 votes vote down vote up
def write(self, data):
        length = win32gui.GetWindowTextLength(self.handle)
        win32gui.SendMessage(self.handle, win32con.EM_SETSEL, length, length)
        win32gui.SendMessage(self.handle, win32con.EM_REPLACESEL, False, data)