This is an archival dump of old wiki content --- see scipy.org for current material.
Please see http://scipy-cookbook.readthedocs.org/

Attachment 'mplwidget_tutorial.py'

Download

   1 # -*- coding: utf-8 -*-
   2 
   3 # Form implementation generated from reading ui file 'mplwidget_tutorial.ui'
   4 #
   5 # Created: Thu Sep 15 15:59:51 2005
   6 #      by: The PyQt User Interface Compiler (pyuic) 3.13
   7 #
   8 # WARNING! All changes made in this file will be lost!
   9 
  10 
  11 from qt import *
  12 from mplwidget import *
  13 
  14 
  15 class Form1(QMainWindow):
  16     def __init__(self,parent = None,name = None,fl = 0):
  17         QMainWindow.__init__(self,parent,name,fl)
  18         self.statusBar()
  19 
  20         if not name:
  21             self.setName("Form1")
  22 
  23 
  24         self.setCentralWidget(QWidget(self,"qt_central_widget"))
  25         Form1Layout = QVBoxLayout(self.centralWidget(),11,6,"Form1Layout")
  26 
  27         self.matplotlibWidget1 = MatplotlibWidget(self.centralWidget(),"matplotlibWidget1")
  28         Form1Layout.addWidget(self.matplotlibWidget1)
  29 
  30 
  31 
  32         self.languageChange()
  33 
  34         self.resize(QSize(422,346).expandedTo(self.minimumSizeHint()))
  35         self.clearWState(Qt.WState_Polished)
  36 
  37 
  38     def languageChange(self):
  39         self.setCaption(self.__tr("Form1"))
  40 
  41 
  42     def __tr(self,s,c = None):
  43         return qApp.translate("Form1",s,c)

New Attachment

File to upload
Rename to
Overwrite existing attachment of same name

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.