Hi,
I am using messageDialog. The code is given below:
dlg = wx.MessageDialog(None,"You dont have sufficient priviliges!", '787 RPC:Error',
wx.OK|wx.ICON_EXCLAMATION)
dlg.CenterOnParent()
res = dlg.ShowModal()
dlg.Destroy()
This dialog box does not pop up at the centre of the parent frame instead it occupies alwyas the centre of the screen irrespective of the position of the frame.
Regards,
Rajendra
···
-----Original Message-----
From: wxpython-users-bounces+rajendra_arvindgai=infosys.com@lists.wxwidgets.org [mailto:wxpython-users-bounces+rajendra_arvindgai=infosys.com@lists.wxwidgets.org] On Behalf Of wxpython-users-request@lists.wxwidgets.org
Sent: Thursday, October 23, 2008 4:57 PM
To: wxpython-users@lists.wxwidgets.org
Subject: wxpython-users Digest, Vol 8, Issue 88
Send wxpython-users mailing list submissions to
wxpython-users@lists.wxwidgets.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
or, via email, send a message with subject or body 'help' to
wxpython-users-request@lists.wxwidgets.org
You can reach the person managing the list at
wxpython-users-owner@lists.wxwidgets.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of wxpython-users digest..."
Today's Topics:
1. Re: Dialog box: Set on Center of parent frame? (Andrea Gavana)
2. How to split Status Bar ? (Rajendra Arvind Gai)
3. Re: How to split Status Bar ? (Aigars)
4. wx.Window.InitBuffer (Aigars)
5. Re: How to split Status Bar ? (raffaello)
----------------------------------------------------------------------
Message: 1
Date: Thu, 23 Oct 2008 09:27:38 +0100
From: "Andrea Gavana" <andrea.gavana@gmail.com>
Subject: Re: [wxpython-users] Dialog box: Set on Center of parent
frame?
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<d5ff27200810230127v4a9d9f4fw1b77021f7a9c83d9@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
On Thu, Oct 23, 2008 at 7:33 AM, Rajendra Arvind Gai wrote:
I have a frame and on click of a button, a dialog box is popped up. I want
the dialog box to pop up always at the centre of the frame irrespective of
where the frame is located on the screen. Presently this is not happeneing.
Which kind of dialog is your "dialog box"? A wx.MessageDialog? A
wx.Dialog that you customized? If the latter, you may do something
like:
myDialog.CenterOnParent()
Assuming that the dialog's parent is the frame. If it is a
wx.MessageDialog, I don't remember if using CenterOnParent() works or
not, but it's worth trying it. Otherwise, you may take a look at my
GenericMessageDialog here:
http://xoomer.alice.it/infinity77/main/freeware.html#genericmessagedialog
HTH.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
------------------------------
Message: 2
Date: Thu, 23 Oct 2008 15:15:07 +0530
From: Rajendra Arvind Gai <Rajendra_ArvindGai@infosys.com>
Subject: [wxpython-users] How to split Status Bar ?
To: "wxpython-users@lists.wxwidgets.org"
<wxpython-users@lists.wxwidgets.org>
Message-ID:
<A85DDBBFBC1F7642A6FFBD88841ABE4A0F88778AC5@BLRKECMBX06.ad.infosys.com>
Content-Type: text/plain; charset="us-ascii"
Hi all,
I have used a status bar on my frame developed in BOA Constructor. I want to split my status bar into two parts in proportion of .75 and .25 i.e., First part should be 75% and 2nd part should be 25% of the total. And then at various places in my code I want to set the messages to each of the parts separately. Example: Part1='Hello'; Part2='Bye'. How can I do this?
Regards,
Rajendra
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20081023/4f52c756/attachment-0001.htm
------------------------------
Message: 3
Date: Thu, 23 Oct 2008 14:19:33 +0300
From: Aigars <srad@inbox.lv>
Subject: Re: [wxpython-users] How to split Status Bar ?
To: wxpython-users@lists.wxwidgets.org
Message-ID: <1224760773.49005dc5eeabd@www.inbox.lv>
Content-Type: text/plain; charset="utf-8"
Hello Rajendra,
Try this:
self.CreateStatusBar()
self.StatusBar.SetFieldsCount(2)
self.StatusBar.SetStatusWidths([-3, -1]) #Or positive numbers
if absolute width
self.SetStatusText("Hello",0)
self.SetStatusText("Bye",1)
Aigars
Quoting Rajendra Arvind Gai :
/**/
Hi all,
 
I have used a status bar on my frame developed in BOA Constructor. I
want to split my status bar into two parts in proportion of .75 and
.25 i.e., First part should be 75% and 2nd part should be 25% of the
total. And then at various places in my code I want to set the
messages to each of the parts separately. Example: Part1='Hello';
Part2='Bye'. How can I do this?
 
Regards,
Rajendra
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely
for the use of the addressee(s). If you are not the intended
recipient, please
notify the sender by e-mail and delete the original message. Further,
you are not
to copy, disclose, or distribute this e-mail or its contents to any
other person and
any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken
every reasonable precaution to minimize this risk, but is not liable
for any damage
you may sustain as a result of any virus in this e-mail. You should
carry out your
own virus checks before opening the e-mail or attachment. Infosys
reserves the
right to monitor and review the content of all messages sent to or
from this e-mail
address. Messages sent to or from this e-mail address may be stored
on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Links:
------
[1] mailto:Rajendra_ArvindGai@infosys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20081023/8d14f45f/attachment-0001.htm
------------------------------
Message: 4
Date: Thu, 23 Oct 2008 14:25:01 +0300
From: Aigars <srad@inbox.lv>
Subject: [wxpython-users] wx.Window.InitBuffer
To: wxpython-users <wxpython-users@lists.wxwidgets.org>
Message-ID: <1224761101.49005f0de2d4c@www.inbox.lv>
Content-Type: text/plain; charset="utf-8"
Good day,
I am learnign wxPython by wxPython in action.
Came to example about device context drawing.
There is command:
wx.Window.InitBuffer()
There are no explanations in book, neither I have found something on
http://docs.wxwidgets.org/.
What is it, and when someone should use it?
Thanks in advance,
Aigars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20081023/538e57f0/attachment-0001.htm
------------------------------
Message: 5
Date: Thu, 23 Oct 2008 13:26:29 +0200
From: raffaello <barbarossa.platz@gmail.com>
Subject: Re: [wxpython-users] How to split Status Bar ?
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<5caf8fc00810230426p69e7078fk999c57bec067880@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
wx.StatusBar.SetStatusWidths(3, 1).
For more detailst look up the documentation.*
*
2008/10/23 Rajendra Arvind Gai <Rajendra_ArvindGai@infosys.com>
Hi all,
I have used a status bar on my frame developed in BOA
Constructor. I want to split my status bar into two parts in proportion of
.75 and .25 i.e., First part should be 75% and 2nd part should be 25% of
the total. And then at various places in my code I want to set the messag=
es
to each of the parts separately. Example: Part1=3D'Hello'; Part2=3D'Bye'.=
How
can I do this?
Regards,
Rajendra
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended sol=
ely
for the use of the addressee(s). If you are not the intended recipient, p=
lease
notify the sender by e-mail and delete the original message. Further, you=
are not
to copy, disclose, or distribute this e-mail or its contents to any other=
person and
any such actions are unlawful. This e-mail may contain viruses. Infosys h=
as taken
every reasonable precaution to minimize this risk, but is not liable for =
any damage
you may sustain as a result of any virus in this e-mail. You should carry=
out your
own virus checks before opening the e-mail or attachment. Infosys reserve=
s the
right to monitor and review the content of all messages sent to or from t=
his e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200810=
23/4a7f6682/attachment.htm
------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
End of wxpython-users Digest, Vol 8, Issue 88
*********************************************