Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wxpython_fast_learning [2016/09/30 12:57]
shiyc12 [Class overwrite : app]
wxpython_fast_learning [2016/09/30 12:58]
shiyc12 [Class overwrite : app]
Line 31: Line 31:
 <code python> <code python>
 import wx import wx
-import mainFrame.py+import mainFrame
 class App(wx.App):​ class App(wx.App):​
     def __init__(self,​redirect=False,​...):​     def __init__(self,​redirect=False,​...):​
Line 40: Line 40:
         mainFrame = mainframe(parent=None,​name='​myprogram',​...)         mainFrame = mainframe(parent=None,​name='​myprogram',​...)
         mainFrame.Show(True)         mainFrame.Show(True)
-        self.SetTopWindow(mainFrame)+        self.SetTopWindow(mainFrame) ​  # Set top window of this app, do not forget it!
         ... # initiate parameters or load configurations here         ... # initiate parameters or load configurations here
         return True         return True

Richard Feynman

“everything that is living can be understood in terms of the jiggling and wiggling of atoms”.

and now, we want to watch atoms jiggling and wiggling.

X-rays, electrons, fluorescence light, the advances of photon sciences, together with computational modeling, are making this happen.