Skip to content

Commit

Permalink
Make windows resizeable and fix some proportions.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexras committed Nov 21, 2018
1 parent 566fe8e commit cebeb61
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ cover/
Include/
Lib/
Scripts
*~
*~
1 change: 1 addition & 0 deletions lsmc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
build
images/images.py
2 changes: 1 addition & 1 deletion lsmc/InstrumentPane.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def name_setter(instrument, new_name):

sizer = wx.BoxSizer(wx.HORIZONTAL)

sizer.Add(self.instr_list, 1, wx.ALL | wx.EXPAND, border=5)
sizer.Add(self.instr_list, 0, wx.ALL | wx.EXPAND, border=5)

for panel in self.instr_panels.values():
sizer.Add(panel, 1, wx.EXPAND)
Expand Down
3 changes: 1 addition & 2 deletions lsmc/LSMC
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class MainMenuBar(wx.MenuBar):
class MainWindow(wx.Frame):
def __init__(self):
wx.Frame.__init__(
self, None, wx.ID_ANY, "Little Sound MC", size=(600,400),
style=wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.CLIP_CHILDREN)
self, None, wx.ID_ANY, "Little Sound MC", size=(600,600))

self.sav_obj = None

Expand Down
6 changes: 1 addition & 5 deletions lsmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ install-deps-mac:

.PHONY: install-deps-win
install-deps-win:
pip install --upgrade -r ../requirements_win.txt \
--allow-external wxPython \
--allow-unverified wxPython \
--allow-external ObjectListView \
--allow-unverified ObjectListView
pip install --upgrade -r ../requirements_win.txt
4 changes: 2 additions & 2 deletions lsmc/SongWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class SongWindow(wx.Frame):

def __init__(self, parent, project, index):
frame_size = (650, 550)
frame_size = (750, 550)

window_pos = utils.random_pos(frame_size)

Expand All @@ -22,7 +22,7 @@ def __init__(self, parent, project, index):
self, parent, wx.ID_ANY, "Song - %s" % (project.name),
size=frame_size, pos=window_pos,
style=wx.SYSTEM_MENU | wx.CAPTION |
wx.CLOSE_BOX | wx.CLIP_CHILDREN)
wx.CLOSE_BOX | wx.CLIP_CHILDREN | wx.RESIZE_BORDER)

panel = wx.Panel(self)

Expand Down
6 changes: 2 additions & 4 deletions lsmc/TablePane.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ def __init__(self, parent, project):

self.sizer = wx.BoxSizer(wx.HORIZONTAL)

self.sizer.Add(self.table_list, 1, wx.ALL | wx.EXPAND)
self.sizer.AddSpacer(20)
self.sizer.Add(self.table_view, 2, wx.ALL | wx.EXPAND)
self.sizer.AddStretchSpacer()
self.sizer.Add(self.table_list, 0, wx.ALL | wx.EXPAND, border=5)
self.sizer.Add(self.table_view, 1, wx.EXPAND)

self.SetSizer(self.sizer)

Expand Down

0 comments on commit cebeb61

Please sign in to comment.