Skip to content

Commit

Permalink
reshaped GUI for small vertical screen
Browse files Browse the repository at this point in the history
  • Loading branch information
BM32ESRF committed Oct 22, 2024
1 parent 37aa51c commit 8f30a41
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions LaueTools/GUI/AutoindexationGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def initGUI(self):
self.StartButton.SetFont(font3)
quitbtn = wx.Button(self, 2, "Quit", size=(-1, 80))
self.textprocess = wx.StaticText(self, -1, " ")
self.gauge = wx.Gauge(self, -1, 1000, size=(250, 25))
self.gauge = wx.Gauge(self, -1, 1000, size=(250, -1))

self.StartButton.Bind(wx.EVT_BUTTON, self.OnStart)
quitbtn.Bind(wx.EVT_BUTTON, self.OnQuit)
Expand Down Expand Up @@ -294,27 +294,27 @@ def initGUI(self):
h10box.Add(self.gauge, 0, wx.EXPAND, 10)

vbox = wx.BoxSizer(wx.VERTICAL)
vbox.Add(txtcf, 0, wx.EXPAND, 10)
vbox.Add(txtcfolder, 0, wx.EXPAND, 10)
vbox.Add(h1box, 0, wx.EXPAND, 10)
vbox.AddSpacer(10)
vbox.Add(title1, 0, wx.EXPAND, 10)
vbox.Add(h2box, 0, wx.EXPAND, 10)
vbox.Add(h3box, 0, wx.EXPAND, 10)
vbox.AddSpacer(10)
vbox.Add(lutrectxt, 0, wx.EXPAND, 10)
vbox.Add(h4box, 0, wx.EXPAND, 10)
vbox.Add(h5box, 0, wx.EXPAND, 10)
vbox.AddSpacer(10)
vbox.Add(matchtxt, 0, wx.EXPAND, 10)
vbox.Add(h6box, 0, wx.EXPAND, 10)
vbox.Add(h7box, 0, wx.EXPAND, 10)
vbox.AddSpacer(10)
vbox.Add(pptxt, 0, wx.EXPAND, 10)
vbox.Add(h8box, 0, wx.EXPAND, 10)
vbox.Add(self.showplotBox, 0, wx.EXPAND, 10)
vbox.Add(h9box, 0, wx.EXPAND, 10)
vbox.Add(h10box, 0, wx.EXPAND, 10)
vbox.Add(txtcf, 0, wx.EXPAND, 5)
vbox.Add(txtcfolder, 0, wx.EXPAND, 5)
vbox.Add(h1box, 0, wx.EXPAND, 5)
vbox.AddSpacer(5)
vbox.Add(title1, 0, wx.EXPAND, 5)
vbox.Add(h2box, 0, wx.EXPAND, 5)
vbox.Add(h3box, 0, wx.EXPAND, 5)
vbox.AddSpacer(5)
vbox.Add(lutrectxt, 0, wx.EXPAND, 5)
vbox.Add(h4box, 0, wx.EXPAND, 5)
vbox.Add(h5box, 0, wx.EXPAND, 5)
vbox.AddSpacer(5)
vbox.Add(matchtxt, 0, wx.EXPAND, 5)
vbox.Add(h6box, 0, wx.EXPAND, 5)
vbox.Add(h7box, 0, wx.EXPAND, 5)
vbox.AddSpacer(5)
vbox.Add(pptxt, 0, wx.EXPAND, 5)
vbox.Add(h8box, 0, wx.EXPAND, 5)
vbox.Add(self.showplotBox, 0, wx.EXPAND, 5)
vbox.Add(h9box, 0, wx.EXPAND, 5)
vbox.Add(h10box, 0, wx.EXPAND, 5)

self.SetSizer(vbox)

Expand Down

0 comments on commit 8f30a41

Please sign in to comment.