commit 11a94957dc038fc27c5ff976197ad2b2d0352d20 Author: Florian Bruhin Date: Sat Dec 14 22:15:16 2013 +0100 Initial commit diff --git a/qutebrowser/__init__.py b/qutebrowser/__init__.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/qutebrowser/__init__.py @@ -0,0 +1 @@ + diff --git a/qutebrowser/__main__.py b/qutebrowser/__main__.py new file mode 100644 index 000000000..473c33ef1 --- /dev/null +++ b/qutebrowser/__main__.py @@ -0,0 +1,4 @@ +from qutebrowser import app + +if __name__ == '__main__': + app.main() diff --git a/qutebrowser/app.py b/qutebrowser/app.py new file mode 100644 index 000000000..3048f3db8 --- /dev/null +++ b/qutebrowser/app.py @@ -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_()) diff --git a/qutebrowser/widgets.py b/qutebrowser/widgets.py new file mode 100644 index 000000000..f130cde1f --- /dev/null +++ b/qutebrowser/widgets.py @@ -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 }')