old_contents: import sys
  
  from PyQt4.QtGui import *
  import PyQt4.QtCore as QtCore
  
  def restore_create_dialog(wallet):
      pass
  
  
  class BitcoinWidget(QWidget):
  
      def __init__(self, wallet):
          super(BitcoinWidget, self).__init__()
          self.wallet = wallet
          self.initUI()
  
      def initUI(self):
          qbtn = QPushButton('Quit', self)
          qbtn.clicked.connect(QtCore.QCoreApplication.instance().quit)
          qbtn.resize(qbtn.sizeHint())
          qbtn.move(50, 50)
          
          self.setGeometry(300, 300, 250, 150)
          self.setWindowTitle( 'Electrum ' + self.wallet.electrum_version )
          self.show()
  
  class BitcoinGUI():
  
      def __init__(self, wallet):
          self.wallet = wallet
  
      def main(self):
  
          app = QApplication(sys.argv)
          w = BitcoinWidget(self.wallet)
          app.exec_()
  
  
  
  
  
                                                  
  
new_contents: import sys
  
  # todo: see PySide
  
  from PyQt4.QtGui import *
  from PyQt4.QtCore import *
  import PyQt4.QtCore as QtCore
  import PyQt4.QtGui as QtGui
  
  def restore_create_dialog(wallet):
      pass
  
  
  class BitcoinWidget(QWidget):
  
      def __init__(self, wallet):
          super(BitcoinWidget, self).__init__()
          self.wallet = wallet
          self.initUI()
  
      def create_history_tab(self):
          h = [ 'ff', 'bar' ]
          qstr = QStringList((QString('foo'),QString('bar')))
          qstr_model = QtGui.QStringListModel(qstr)
          lv = QListView()
          lv.setModel(qstr_model)
          return lv
  
      def create_send_tab(self):
          return QLabel('heh')
  
      def create_receive_tab(self):
          return QLabel('heh')
  
      def create_contacts_tab(self):
          return QLabel('heh')
  
      def create_wall_tab(self):
          return QLabel(self.wallet.interface.message)
  
      def initUI(self):
          tabs = QTabWidget(self)
          tabs.addTab(self.create_history_tab(), 'History')  
          tabs.addTab(self.create_send_tab(),    'Send')
          tabs.addTab(self.create_receive_tab(), 'Receive')  
          tabs.addTab(self.create_contacts_tab(),'Contacts')  
          tabs.addTab(self.create_wall_tab(),    'Wall')  
          tabs.resize(600, 400)
          tabs.show()
          
          self.setWindowTitle( 'Electrum ' + self.wallet.electrum_version )
          self.show()
  
  class BitcoinGUI():
  
      def __init__(self, wallet):
          self.wallet = wallet
  
      def main(self):
  
          app = QApplication(sys.argv)
          w = BitcoinWidget(self.wallet)
          app.exec_()
  
  
  
  
  
                                                  
  
subject: add tabs