Attachment 'mplwidget_tutorial.py'
Download
1
2
3
4
5
6
7
8
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
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.
- [get | view] (2006-01-22 20:42:18, 77.0 KB) [[attachment:designer_edit_custom_widgets.png]]
- [get | view] (2006-01-22 20:42:46, 26.2 KB) [[attachment:designer_form_settings_comment.png]]
- [get | view] (2006-01-22 20:42:35, 96.7 KB) [[attachment:designer_full_workspace.png]]
- [get | view] (2006-01-22 20:42:25, 39.9 KB) [[attachment:designer_new_widget.png]]
- [get | view] (2006-01-22 20:41:58, 26.0 KB) [[attachment:designer_newopen.png]]
- [get | view] (2006-01-22 20:42:08, 52.5 KB) [[attachment:designer_wizard.png]]
- [get | view] (2006-01-22 20:45:29, 15.8 KB) [[attachment:ipython_interacted.png]]
- [get | view] (2006-01-22 20:45:20, 20.4 KB) [[attachment:ipython_invoked.png]]
- [get | view] (2006-01-22 20:44:16, 0.1 KB) [[attachment:main_mpl_tutorial.py]]
- [get | view] (2006-01-22 20:43:39, 1.5 KB) [[attachment:mplwidget.py]]
- [get | view] (2006-01-22 20:43:47, 1.1 KB) [[attachment:mplwidget_tutorial.py]]
- [get | view] (2006-01-22 20:43:59, 3.7 KB) [[attachment:mplwidget_tutorial.ui]]