How To Qyoto
Print Hello World
Write Basic Syntax
Use Properties
Make An If Else Ladder
Make A Branch Statement
Declare Inits
Use Lists
Use Arrays
Make A Class Hierarchy
Use Nil And Nilable Types
Use Dynamic Typing
Declare Variable Number Of Args
Read And Write Files
Check Inheritance And Implementation
Customize Object Equality
Pass References To Methods
Translate Pseudo Code To Cobra 1
Translate Pseudo Code To Cobra 2
Implement IEnumerable 1
Implement IEnumerable 2
Iterate Through Recursive Data With Yield
Make A Collection Class
Declare Contracts
Threads
Win Forms
WPF
GTK
Qyoto
Access MySQL
XNA
Open TK
 
"""
A barebones Qt application using Qyoto.
credit:Kurper

If you're using (K)Ubuntu, you should be able to install Qyoto with:
sudo apt-get install libqyoto-dev libqyoto4.4-cil

If you're using a different version of Linux or a different OS, you'll want to
do something else, and modify the below @ref to point to the appropriate DLL.
You might be able to remove the @ref entirely; it seem likely that it's only
necessary because of issues with the Qyoto package in Ubuntu.

Once Qyoto's installed, you can run the program with:
cobra 394-Qyoto.cobra
"""

@ref '/usr/lib/cli/kdebindings-4.4/qt-dotnet.dll'

use Qyoto

class Program

    def main

        qapp = QApplication(String[](0)) # we have no relevant args
        mainWindow = QMainWindow()
        mainWindow.show

        butt = QPushButton('Quit')
        QObject.connect(butt, Qt.signal('clicked()'), qapp, Qt.slot('quit()'))
        mainWindow.setCentralWidget(butt)

        mainWindow.setWindowTitle('Qt App')

        QApplication.exec