Skip to content

Instantly share code, notes, and snippets.

Last active Jul 24, 2017
What would you like to do?
Buggy code...
import Glibc
import Qlift
class ChrysalisFM {
let app = QApplication()
let window = QMainWindow()
let mainWidg = QWidget()
var layout: QHBoxLayout
let v_layout = QVBoxLayout()
var button: QPushButton
init() {
self.layout = QHBoxLayout(parent: self.mainWidg)
self.button = QPushButton(text: "Add Col")
//self.layout.add(widget: self.button)
//self.layout.add(item: self.v_layout)
func run() -> Int32 {
print("Entering main()")
self.window.centralWidget = self.mainWidg
print("Main Widget added")
print("Event loop starting")
let app = ChrysalisFM()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment