Initial commit

This commit is contained in:
Florian Bruhin 2013-12-14 22:15:16 +01:00
commit 11a94957dc
4 changed files with 27 additions and 0 deletions

1
qutebrowser/__init__.py Normal file
View File

@ -0,0 +1 @@

4
qutebrowser/__main__.py Normal file
View File

@ -0,0 +1,4 @@
from qutebrowser import app
if __name__ == '__main__':
app.main()

16
qutebrowser/app.py Normal file
View File

@ -0,0 +1,16 @@
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from qutebrowser.widgets import CommandEdit
class TestWindow(QWidget):
def __init__(self):
super(TestWindow, self).__init__()
self.ce = CommandEdit(self)
self.ce.move(0, 0)
self.resize(self.ce.sizeHint())
self.show()
def main():
app = QApplication(sys.argv)
tw = TestWindow()
sys.exit(app.exec_())

6
qutebrowser/widgets.py Normal file
View File

@ -0,0 +1,6 @@
from PyQt5.QtWidgets import QLineEdit
class CommandEdit(QLineEdit):
def __init__(self, *args, **kwargs):
super(CommandEdit, self).__init__(*args, **kwargs)
self.setStyleSheet('QLineEdit { background: yellow }')