Skip to content

Commit

Permalink
Added separator to dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
esitarski committed Apr 26, 2024
1 parent 548d741 commit 1406c6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gantt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def __init__( self, parent, category, earlyBellTime=None, id=wx.ID_ANY ):
nes.Add( self.earlyBellTimeLabel, flag=wx.ALIGN_CENTRE_VERTICAL )
nes.Add( self.earlyBellTime, 1, flag=wx.LEFT|wx.EXPAND, border=4 )

bs = self.CreateButtonSizer( wx.OK | wx.CANCEL )
bs = self.CreateSeparatedButtonSizer( wx.OK | wx.CANCEL )

mainSizer = wx.BoxSizer( wx.VERTICAL )
mainSizer.Add( title, flag=wx.ALL|wx.EXPAND, border=4 )
mainSizer.Add( nes, flag=wx.ALL|wx.EXPAND, border=4 )
mainSizer.Add( bs, flag=wx.ALL|wx.EXPAND, border=4 )
if bs:
mainSizer.Add( bs, flag=wx.ALL|wx.EXPAND, border=4 )

self.SetSizerAndFit( mainSizer )

Expand Down

0 comments on commit 1406c6c

Please sign in to comment.