Initial commit
This commit is contained in:
commit
11a94957dc
1
qutebrowser/__init__.py
Normal file
1
qutebrowser/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
|
4
qutebrowser/__main__.py
Normal file
4
qutebrowser/__main__.py
Normal file
@ -0,0 +1,4 @@
|
||||
from qutebrowser import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.main()
|
16
qutebrowser/app.py
Normal file
16
qutebrowser/app.py
Normal 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
6
qutebrowser/widgets.py
Normal 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 }')
|
Loading…
Reference in New Issue
Block a user