Created
April 28, 2016 05:30
-
-
Save nrtkbb/72cbc6cd4eb8cd7b7b1e8b618cbb4df6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import sys | |
from PySide import QtGui | |
class ColumnWidget(QtGui.QWidget): | |
def __init__(self, parent=None): | |
super(ColumnWidget, self).__init__(parent) | |
layout = QtGui.QGridLayout() | |
self.setLayout(layout) | |
model = QtGui.QDirModel() | |
self.column_view = QtGui.QColumnView() | |
self.column_view.setModel(model) | |
layout.addWidget(self.column_view) | |
app = QtGui.QApplication(sys.argv) | |
screen = ColumnWidget() | |
screen.show() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment