<commit_before>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_()





                                                <commit_msg>add tabs<commit_after>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_()





                                                
{'fraction_non_alphanumeric': 0.11093688749509996, 'fraction_numerical': 0.01097608780870247, 'mean_word_length': 2.259259259259259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2079276', 'n_tokens_mistral': 846, 'n_tokens_neox': 793, 'n_words': 150}