def main(): # df = pd.DataFrame({'a': 2*'a' ,'b' : 2*'b' , 'c' :[1,1]}) path = "/home/phcostello/Dropbox/iHub/Umati/" df = pd.read_csv(path + "FullData.csv") df = df.drop(["Name"], axis=1) app = QtGui.QApplication(sys.argv) gui = MyDialog() gui.state.getData(df) gui.show() sys.exit(app.exec_())
def main(): #df = pd.DataFrame({'a': 2*'a' ,'b' : 2*'b' , 'c' :[1,1]}) path = '/home/phcostello/Dropbox/iHub/Umati/' df = pd.read_csv(path + 'FullData.csv') df = df.drop(['Name'], axis=1) app = QtGui.QApplication(sys.argv) gui = MyDialog() gui.state.getData(df) gui.show() sys.exit(app.exec_())
def start(df): '''Starts gui when imported''' import sys app = QtGui.QApplication(sys.argv) gui = MyDialog() gui.state.getData(df) gui.show() app.exec_() #sys.exit(app.exec_()) return gui
def start(df): """Starts gui when imported""" import sys app = QtGui.QApplication(sys.argv) gui = MyDialog() gui.state.getData(df) gui.show() app.exec_() # sys.exit(app.exec_()) return gui