diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-05-21 00:16:39 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-05-21 00:16:39 +0200 |
commit | a5d315bcdcfcb8f2fca8266201d2738aa1943e42 (patch) | |
tree | 576d2721a96dc96fc3616ec124a82c97cd785b3b /dotstr_edit.py | |
parent | 948ccc48c33f2edb56dfabe7c59855c7adf589aa (diff) | |
download | dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.tar.gz dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.tar.bz2 dotstr_edit-a5d315bcdcfcb8f2fca8266201d2738aa1943e42.zip |
Some Windows-related bugfixes and an "exefying" script.
Also added "LICENSE" and "installer.nsi", which builds an
Installer for Windows.
Diffstat (limited to 'dotstr_edit.py')
-rw-r--r--[-rwxr-xr-x] | dotstr_edit.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dotstr_edit.py b/dotstr_edit.py index 24265e8..f1cdb2c 100755..100644 --- a/dotstr_edit.py +++ b/dotstr_edit.py @@ -239,7 +239,7 @@ class editor_frame(wx.Frame): def form_init(self): """ - IInitializes / clears all formulars + Initializes / clears all formulars """ self.populate_list() self.input_filter.SetValue("") @@ -366,12 +366,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" self.trans_text_ctrl.SetValue("") def on_filter(self, event): - if self.input_filter.GetValue() != "": + if event.GetString() != "": self.populate_list() - if len(self.transl_list.dict) == 0 and self.input_filter.GetValue() != "": + if len(self.transl_list.dict) == 0 and event.GetString() != "": self.input_filter.SetBackgroundColour(wx.Colour(255,100,100)) else: self.input_filter.SetBackgroundColour(wx.NullColour) + self.input_filter.Refresh() def on_textedit(self, event): key = self.transl_list.get_seclection() |