textctrl

Getting String from A TextCtrl Box

折月煮酒 提交于 2019-12-20 10:38:30
问题 How to get the strings from a TextCtrl box? Here is the practice code: import wx class citPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) wx.StaticText(self, -1, "Choose put you would like:", (45, 15)) self.quote = wx.StaticText(self, -1, "1:", wx.Point(275, 180), wx.Size(200, -1)) self.quote = wx.StaticText(self, -1, "2:", wx.Point(275, 230), wx.Size(200, -1)) self.quote = wx.StaticText(self, -1, "3:", wx.Point(275, 280), wx.Size(200, -1)) class

wxpython threading textctrl delay

核能气质少年 提交于 2019-12-12 04:45:11
问题 I have any issue with wxpython's textctrl and threading. Would appreciate any help in resolving this issue. My program processes files, as and when each file is processed it is listed within the textctrl as being completed. When working with just a few files the textctrl is responsive and displays itself immediately and does not disappear. Even if these files are large. Did a test on a 700mb file and textctrl worked perfectly. The problem occurs when workin on many files, say 20+ for exmaple.

How do I get the scroll position / range from a wx.TextCtrl control in wxPython

喜欢而已 提交于 2019-12-02 07:34:44
问题 I have a little logging app (written in wxPython) that receives data from a bit of kit we're developing, and I want to display the text in a scrolling window. As it stands I'm using a wx.TextCtrl for the text display, but I'm having some issues with the scrolling behaviour. Basically, I'd like it so that if the scrollbar is at the bottom of the window (i.e. the end of the incoming data), adding more data should scroll the view onwards. If, however the view has been scrolled up a little (i.e.

How do I get the scroll position / range from a wx.TextCtrl control in wxPython

风格不统一 提交于 2019-12-02 03:54:02
I have a little logging app (written in wxPython) that receives data from a bit of kit we're developing, and I want to display the text in a scrolling window. As it stands I'm using a wx.TextCtrl for the text display, but I'm having some issues with the scrolling behaviour. Basically, I'd like it so that if the scrollbar is at the bottom of the window (i.e. the end of the incoming data), adding more data should scroll the view onwards. If, however the view has been scrolled up a little (i.e. the user is looking at something interesting like an error message), the app should just add the text