I think I'm getting closer, here is an updated version with all the SQLite3 taken out. Everything loads fine, but nothing gets sent to the MainWindow.<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
import sys, random, sqlite3, os<br>from PyQt4.QtCore import *<br>from PyQt4.QtGui import *<br>from PyQt4 import QtGui, QtCore<br>from geodesic import Ui_MainWindow<br><br>class gameWindow(QtGui.QMainWindow):<br> def __init__(self, parent=None):<br>
super(gameWindow, self).__init__(parent)<br> QtGui.QMainWindow.__init__(self)<br> self.ui = Ui_MainWindow()<br> self.ui.setupUi(self)<br> <br> buttonHarvest = QPushButton("Harvest") #Create the harvest button - but QT Designer made it?<br>
buttonMining = QPushButton("Mining") # Create the mining button - but QT Designer made it?<br> self.label = QLabel("Example") # Set the empty label that's not showing<br><br> self.connect(buttonHarvest, SIGNAL("clicked()"), self.skillHarvest) #Gets from def skillHarvest<br>
self.setWindowTitle("Geodesic")<br> # Next -------------------------------------------------------------------------------------<br> self.connect(buttonMining, SIGNAL("clicked()"), self.skillMining) #Gets from def skillMining<br>
<br> def skillHarvest(self):<br> harvest = "You find some roots."<br> self.label.setText(harvest)<br> <br> def skillMining(self):<br> mining = "You found some gold."<br>
self.label.setText(mining)<br><br>app = QApplication(sys.argv)<br>showWindow = gameWindow()<br>showWindow.show()<br>app.exec_()<br></blockquote>