##// END OF EJS Templates
Adicion del metodo saveFigure() para guardar archivos de imagen de la clase Figure(). Se modifica los xaxis se muestran en formato datetime, falta hacer ajustes en los ticks de acuerdo al intervalo [xmin, xmax]
Adicion del metodo saveFigure() para guardar archivos de imagen de la clase Figure(). Se modifica los xaxis se muestran en formato datetime, falta hacer ajustes en los ticks de acuerdo al intervalo [xmin, xmax]

File last commit:

r208:f0e2ebb4337f
r209:8c431837892b
Show More
ui_window.py
68 lines | 3.1 KiB | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\window.ui'
#
# Created: Mon Oct 15 16:44:32 2012
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_window(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(220, 198)
self.centralWidget = QtGui.QWidget(MainWindow)
self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
self.label = QtGui.QLabel(self.centralWidget)
self.label.setGeometry(QtCore.QRect(20, 10, 131, 20))
font = QtGui.QFont()
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.label_2 = QtGui.QLabel(self.centralWidget)
self.label_2.setGeometry(QtCore.QRect(20, 60, 131, 20))
font = QtGui.QFont()
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.cancelButton = QtGui.QPushButton(self.centralWidget)
self.cancelButton.setGeometry(QtCore.QRect(110, 160, 51, 23))
self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
self.okButton = QtGui.QPushButton(self.centralWidget)
self.okButton.setGeometry(QtCore.QRect(50, 160, 51, 23))
self.okButton.setObjectName(_fromUtf8("okButton"))
self.proyectNameLine = QtGui.QLineEdit(self.centralWidget)
self.proyectNameLine.setGeometry(QtCore.QRect(20, 30, 181, 20))
self.proyectNameLine.setObjectName(_fromUtf8("proyectNameLine"))
self.descriptionTextEdit = QtGui.QTextEdit(self.centralWidget)
self.descriptionTextEdit.setGeometry(QtCore.QRect(20, 80, 181, 71))
self.descriptionTextEdit.setObjectName(_fromUtf8("descriptionTextEdit"))
MainWindow.setCentralWidget(self.centralWidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("MainWindow", "Project Name:", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Description :", None, QtGui.QApplication.UnicodeUTF8))
self.cancelButton.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
self.okButton.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_window()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())