Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69101 > unrolled thread
| Started by | Jaydeep Patil <patil.jay2009@gmail.com> |
|---|---|
| First post | 2014-03-25 22:04 -0700 |
| Last post | 2014-03-26 09:43 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
Hold wxframe (GUI) Jaydeep Patil <patil.jay2009@gmail.com> - 2014-03-25 22:04 -0700
Re: Hold wxframe (GUI) Jaydeep Patil <patil.jay2009@gmail.com> - 2014-03-25 23:03 -0700
Re: Hold wxframe (GUI) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-26 09:43 +0000
| From | Jaydeep Patil <patil.jay2009@gmail.com> |
|---|---|
| Date | 2014-03-25 22:04 -0700 |
| Subject | Hold wxframe (GUI) |
| Message-ID | <57d2dd3d-af3b-4678-ac11-ae911bfeda60@googlegroups.com> |
I constructed Two frames.
One frame consist of GUI which consist of one Ok button.
Afer click on OK button another GUI calls. But after Second gui calling, It wont stop further procesees. I need to stop futher proceeses. How can i hold second gui?
Please reply
Sample Code is:
import wx
class App(wx.App):
'''
classdocs
'''
def __init__(self,name=None):
'''
Constructor
'''
wx.App.__init__(self)
self.d = Dashboard()
self.d.Show()
def _startMainLoop(self):
self.MainLoop()
pass
def start(self):
#self.d.Show()
self._startMainLoop()
pass
class Dashboard(wx.Frame):
'''
classdocs
'''
def __init__(self,name=None):
'''
Constructor
'''
wx.Frame.__init__(self,None,wx.ID_ANY)
print("Frame 1")
self.btnOk = wx.Button(self,-1,"OK")
self.btnOk.Bind(wx.EVT_BUTTON,self.test)
def test(self,event):
print("Before")
self.f = Dashboard1(self) ## I need to Stop here only
self.f.Show()
self.f.MakeModal(True)
print("AFter")
class Dashboard1(wx.Frame):
'''
classdocs
'''
def __init__(self,parent):
'''
Constructor
'''
wx.Frame.__init__(self,parent,wx.ID_ANY)
a = App()
a.start()
Output is :
Frame 1
Before
After
[toc] | [next] | [standalone]
| From | Jaydeep Patil <patil.jay2009@gmail.com> |
|---|---|
| Date | 2014-03-25 23:03 -0700 |
| Message-ID | <f68979f1-70bc-40e4-90ba-26f8a08f9f56@googlegroups.com> |
| In reply to | #69101 |
On Wednesday, 26 March 2014 10:34:26 UTC+5:30, Jaydeep Patil wrote:
> I constructed Two frames.
>
> One frame consist of GUI which consist of one Ok button.
>
>
>
> Afer click on OK button another GUI calls. But after Second gui calling, It wont stop further procesees. I need to stop futher proceeses. How can i hold second gui?
>
>
>
>
>
> Please reply
>
>
>
>
>
>
>
> Sample Code is:
>
>
>
> import wx
>
> class App(wx.App):
>
> '''
>
> classdocs
>
> '''
>
> def __init__(self,name=None):
>
> '''
>
> Constructor
>
> '''
>
> wx.App.__init__(self)
>
> self.d = Dashboard()
>
> self.d.Show()
>
>
>
> def _startMainLoop(self):
>
> self.MainLoop()
>
> pass
>
>
>
> def start(self):
>
> #self.d.Show()
>
> self._startMainLoop()
>
> pass
>
>
>
>
>
> class Dashboard(wx.Frame):
>
> '''
>
> classdocs
>
> '''
>
> def __init__(self,name=None):
>
> '''
>
> Constructor
>
> '''
>
> wx.Frame.__init__(self,None,wx.ID_ANY)
>
> print("Frame 1")
>
>
>
> self.btnOk = wx.Button(self,-1,"OK")
>
>
>
> self.btnOk.Bind(wx.EVT_BUTTON,self.test)
>
>
>
> def test(self,event):
>
> print("Before")
>
> self.f = Dashboard1(self) ## I need to Stop here only
>
> self.f.Show()
>
> self.f.MakeModal(True)
>
> print("AFter")
>
>
>
>
>
>
>
> class Dashboard1(wx.Frame):
>
> '''
>
> classdocs
>
> '''
>
> def __init__(self,parent):
>
> '''
>
> Constructor
>
> '''
>
> wx.Frame.__init__(self,parent,wx.ID_ANY)
>
>
>
> a = App()
>
> a.start()
>
>
>
>
>
> Output is :
>
> Frame 1
>
> Before
>
> After
Hi all,
I need to hold the other execution part after next GUI calls?
How can do that?
Anybody can help me?
Regards
Jaydeep Patil
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-03-26 09:43 +0000 |
| Message-ID | <mailman.8568.1395826992.18130.python-list@python.org> |
| In reply to | #69102 |
On 26/03/2014 06:03, Jaydeep Patil wrote: > > Hi all, > > I need to hold the other execution part after next GUI calls? > > How can do that? > > Anybody can help me? > I suggest you try a specific mailing list for wxpython, it's available at gmane.comp.python.wxpython amongst other places. Also would you please use the mailing list https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line paragraphs, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web