Skip to content

Commit

Permalink
SearchCtrl height - linux patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaskulski committed Feb 7, 2020
1 parent 9e5b3af commit 2492cb5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import controller
import dialogs
import platform
from ObjectListView import ObjectListView, ColumnDefn
from wx.lib.wordwrap import wordwrap
from model import olvSkeleton
Expand Down Expand Up @@ -42,7 +43,12 @@ def __init__(self, parent):
search_sizer.Add(self.categories, 0, wx.ALL, 5)

search_sizer.AddSpacer(5)
self.search_ctrl = wx.SearchCtrl(self, style=wx.TE_PROCESS_ENTER, size=(200, -1))

if platform.system().lower() == 'linux':
self.search_ctrl = wx.SearchCtrl(self, style=wx.TE_PROCESS_ENTER, size=(200, 27))
else:
self.search_ctrl = wx.SearchCtrl(self, style=wx.TE_PROCESS_ENTER, size=(200, -1))

# self.search_ctrl.ShowCancelButton(True)
self.search_ctrl.SetDescriptiveText('Filter')
self.search_ctrl.Bind(wx.EVT_TEXT_ENTER, self.search)
Expand Down

0 comments on commit 2492cb5

Please sign in to comment.