old_contents: # -*- coding: utf-8 -*-
  """
  Created on Jul 29, 2012
  
  @author: marko
  """
  from Tkinter import Frame, Label, Button
  import os
  
  from PIL import Image, ImageTk
  
  SPLOGO = os.path.join('res', 'logo_bg.png')
  PVMODULE_TEXT = 'PVmodule'
  PVSTRING_TEXT = 'PVstring'
  PVSYSTEM_TEXT = 'PVsystem'
  
  
  class PVapplicaton(Frame):
      """
      classdocs
      """
  
      def __init__(self, master=None):
          """
          Constructor
          """
          Frame.__init__(self, master)
          self.pack()
  
          self['bg'] = 'black'  # set black background
          self['padx'] = '15'  # pad sides with 15 points
          self['pady'] = '5'  # pad top/bottom 5 points
          self.master.title('PVmismatch')  # set title bar
          self.image = Image.open(SPLOGO)  # create image object
          # convert image to tk-compatible format
          self.SPlogo = ImageTk.PhotoImage(self.image)
          self.SPlogoLabel = Label(self, image=self.SPlogo,
                                   cnf={'borderwidth': '0'})
          self.SPlogoLabel.pack({'side': 'top'})
          self.PVmoduleButton = Button(self, cnf={'text': PVMODULE_TEXT})
          self.PVmoduleButton.pack({'side': 'top', 'fill': 'both'})
          self.PVstringButton = Button(self, cnf={'text': PVSTRING_TEXT})
          self.PVstringButton.pack({'side': 'top', 'fill': 'both'})
          self.PVsystemButton = Button(self, cnf={'text': PVSYSTEM_TEXT})
          self.PVsystemButton.pack({'side': 'top', 'fill': 'both'})
          self.QUIT = Button(self, cnf={'text': 'Quit', 'command': self.quit})
          self.QUIT.pack({'side': 'top', 'fill': 'both'})
  
new_contents: # -*- coding: utf-8 -*-
  """
  Created on Jul 29, 2012
  
  @author: marko
  """
  from Tkinter import Frame, Label, Button
  import os
  
  from PIL import Image, ImageTk
  
  SPLOGO = os.path.join('res', 'logo_bg.png')
  PVMODULE_TEXT = 'PVmodule'
  PVSTRING_TEXT = 'PVstring'
  PVSYSTEM_TEXT = 'PVsystem'
  
  
  class PVapplicaton(Frame):
      """
      classdocs
      """
  
      def __init__(self, master=None):
          """
          Constructor
          """
          Frame.__init__(self, master)
          self.pack(expand=True)  # if user resizes, expand Frame
          self.pack(fill='both')
  
          self['bg'] = 'black'  # set black background
          self['padx'] = '15'  # pad sides with 15 points
          self['pady'] = '5'  # pad top/bottom 5 points
          self.master.title('PVmismatch')  # set title bar
          self.image = Image.open(SPLOGO)  # create image object
          # convert image to tk-compatible format
          self.SPlogo = ImageTk.PhotoImage(self.image)
          self.SPlogoLabel = Label(self, image=self.SPlogo,
                                   cnf={'borderwidth': '0'})
          self.SPlogoLabel.pack({'side': 'top'})
          self.PVmoduleButton = Button(self, cnf={'text': PVMODULE_TEXT})
          self.PVmoduleButton.pack({'side': 'top', 'fill': 'both'})
          self.PVstringButton = Button(self, cnf={'text': PVSTRING_TEXT})
          self.PVstringButton.pack({'side': 'top', 'fill': 'both'})
          self.PVsystemButton = Button(self, cnf={'text': PVSYSTEM_TEXT})
          self.PVsystemButton.pack({'side': 'top', 'fill': 'both'})
          self.QUIT = Button(self, cnf={'text': 'Quit', 'command': self.quit})
          self.QUIT.pack({'side': 'top', 'fill': 'both'})
  
subject: expand AND fill on resize