Skip to content

Commit

Permalink
Update title to new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalegre committed Mar 9, 2016
1 parent 6da7ffd commit 70eb778
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions python/nammu/view/NammuView.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'''
Created on 15 Apr 2015
Main View class.
Main View class.
Initializes the view components and sets components layout.
@author: raquel-ucl
Expand All @@ -14,50 +14,50 @@
class NammuView(JFrame):

def __init__(self, controller):

#Give reference to controller to delegate action response
self.controller = controller
#All window components apart from the menu will go in the JFrame's
#content pane

#All window components apart from the menu will go in the JFrame's
#content pane
self.setLayout(BorderLayout())

#TODO
#Create splitPane with two empty panels for the ATF edition/console area
# splitPane = JSplitPane(JSplitPane.VERTICAL_SPLIT);
#
#
# atfAreaPanel = JPanel()
# consolePanel = JPanel()
#
#
# splitPane.setTopComponent(atfAreaPanel)
# splitPane.setBottomComponent(consolePanel)
# splitPane.setDividerLocation(500);
#
#
# self.add(splitPane)
#
#
#def bind(self):
# self.setContentPane(content)

def addMenuBar(self, menuView):
self.setJMenuBar(menuView)

def addToolBar(self, toolbarView):
self.getContentPane().add(toolbarView, BorderLayout.NORTH)

def addAtfArea(self, atfAreaView):
self.getContentPane().add(atfAreaView, BorderLayout.CENTER)

def addConsole(self, consoleView):
self.getContentPane().add(consoleView, BorderLayout.SOUTH)
self.getContentPane().add(consoleView, BorderLayout.SOUTH)

def display(self):

self.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
self.setTitle("~ Nammu v0.0.1 ~")
self.setTitle("~ Nammu v0.0.3 ~")
self.pack()
self.setLocationRelativeTo(None)

#Display Nammu window
self.visible = 1


0 comments on commit 70eb778

Please sign in to comment.