problem referring an image on the frame

hello friends,
i have a an application where i am loading an image on a scrollbar that is created on a frame. I am loading that image like this…

self.control = wx.ScrolledWindow(self,-1)
self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20), (580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the scrollbar / frame ??? how can i retrieve that at run time ?? is there any command called getvalue something like tht associated with frame or scrollbar ???

thanks,

···


Varsha Purohit,
Graduate Student

Hello,

I am not sure if I completely understand what you are asking but if you mean you want to get the bitmap that is in the window at run time you can just use the "self.obj" which is holding reference to the StaticBitmap in your below code.

Regards,

Cody Precord

···

On Feb 16, 2008, at 12:28 AM, Varsha Purohit wrote:

hello friends,
        i have a an application where i am loading an image on a scrollbar that is created on a frame. I am loading that image like this...

self.control = wx.ScrolledWindow(self,-1)
self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20), (580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the scrollbar / frame ??? how can i retrieve that at run time ?? is there any command called getvalue something like tht associated with frame or scrollbar ???

thanks,

--
Varsha Purohit,
Graduate Student

No unfortunately its not working that’s y i am confused how to retrieve which image is on the frame at run time…

···

On Feb 15, 2008 10:37 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

I am not sure if I completely understand what you are asking but if
you mean you want to get the bitmap that is in the window at run time

you can just use the “self.obj” which is holding reference to the
StaticBitmap in your below code.

Regards,

Cody Precord

On Feb 16, 2008, at 12:28 AM, Varsha Purohit wrote:

hello friends,
i have a an application where i am loading an image on a
scrollbar that is created on a frame. I am loading that image like
this…

self.control = wx.ScrolledWindow(self,-1)

self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20),
(580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the
scrollbar / frame ??? how can i retrieve that at run time ?? is
there any command called getvalue something like tht associated

with frame or scrollbar ???

thanks,


Varsha Purohit,
Graduate Student


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Varsha Purohit,
Graduate Student

Hello,

What’s not working? What are you trying to do? Explaining this would be helpful :wink:

Another stab in the dark, perhaps wx.StaticBitmap.GetBitmap (i.e self.obj.GetBitmap()) is what you are looking for to get the bitmap object held by the StaticBitmap?

···

On Feb 16, 2008, at 12:48 AM, Varsha Purohit wrote:

No unfortunately its not working that’s y i am confused how to retrieve which image is on the frame at run time…

On Feb 15, 2008 10:37 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

I am not sure if I completely understand what you are asking but if
you mean you want to get the bitmap that is in the window at run time
you can just use the “self.obj” which is holding reference to the
StaticBitmap in your below code.

Regards,

Cody Precord

On Feb 16, 2008, at 12:28 AM, Varsha Purohit wrote:

hello friends,
i have a an application where i am loading an image on a
scrollbar that is created on a frame. I am loading that image like
this…

self.control = wx.ScrolledWindow(self,-1)
self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20),
(580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the
scrollbar / frame ??? how can i retrieve that at run time ?? is
there any command called getvalue something like tht associated
with frame or scrollbar ???

thanks,


Varsha Purohit,
Graduate Student


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Varsha Purohit,
Graduate Student

Yes u r right… but i tried using getbitmap it says

TypeError: StaticBitmap_GetBitmap() takes exactly one argument (2 given) if i pass self as parameter like this

image = self.obj.GetBitmap(self)

if i dont pass it gives getbitmap attribute error…

···

On Feb 15, 2008 11:01 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

What’s not working? What are you trying to do? Explaining this would be helpful :wink:

Another stab in the dark, perhaps wx.StaticBitmap.GetBitmap (i.e self.obj.GetBitmap()) is what you are looking for to get the bitmap object held by the StaticBitmap?

On Feb 16, 2008, at 12:48 AM, Varsha Purohit wrote:

No unfortunately its not working that’s y i am confused how to retrieve which image is on the frame at run time…

On Feb 15, 2008 10:37 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

I am not sure if I completely understand what you are asking but if
you mean you want to get the bitmap that is in the window at run time
you can just use the “self.obj” which is holding reference to the

StaticBitmap in your below code.

Regards,

Cody Precord

On Feb 16, 2008, at 12:28 AM, Varsha Purohit wrote:

hello friends,
i have a an application where i am loading an image on a

scrollbar that is created on a frame. I am loading that image like
this…

self.control = wx.ScrolledWindow(self,-1)
self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20),
(580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the

scrollbar / frame ??? how can i retrieve that at run time ?? is
there any command called getvalue something like tht associated
with frame or scrollbar ???

thanks,

Varsha Purohit,
Graduate Student


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Varsha Purohit,

Graduate Student


Varsha Purohit,
Graduate Student

thanks cody i think i got it now… :slight_smile:

···

On Feb 15, 2008 11:43 PM, Varsha Purohit varsha.purohit@gmail.com wrote:

Yes u r right… but i tried using getbitmap it says

TypeError: StaticBitmap_GetBitmap() takes exactly one argument (2 given) if i pass self as parameter like this

image = self.obj.GetBitmap(self)

if i dont pass it gives getbitmap attribute error…

On Feb 15, 2008 11:01 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

What’s not working? What are you trying to do? Explaining this would be helpful :wink:

Another stab in the dark, perhaps wx.StaticBitmap.GetBitmap (i.e self.obj.GetBitmap()) is what you are looking for to get the bitmap object held by the StaticBitmap?

On Feb 16, 2008, at 12:48 AM, Varsha Purohit wrote:

No unfortunately its not working that’s y i am confused how to retrieve which image is on the frame at run time…

On Feb 15, 2008 10:37 PM, Cody Precord codyprecord@gmail.com wrote:

Hello,

I am not sure if I completely understand what you are asking but if
you mean you want to get the bitmap that is in the window at run time
you can just use the “self.obj” which is holding reference to the

StaticBitmap in your below code.

Regards,

Cody Precord

On Feb 16, 2008, at 12:28 AM, Varsha Purohit wrote:

hello friends,
i have a an application where i am loading an image on a

scrollbar that is created on a frame. I am loading that image like
this…

self.control = wx.ScrolledWindow(self,-1)
self.bmp = wx.Image(self.pict,wx.BITMAP_TYPE_JPEG).ConvertToBitmap()

self.obj= wx.StaticBitmap(self.control, -1, self.bmp,(20,20),
(580,620))

self.control.SetScrollbars(20, 20, 55, 40)

now how do i refer at run time which image is loaded on the

scrollbar / frame ??? how can i retrieve that at run time ?? is
there any command called getvalue something like tht associated
with frame or scrollbar ???

thanks,

Varsha Purohit,
Graduate Student


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Varsha Purohit,

Graduate Student


Varsha Purohit,
Graduate Student


Varsha Purohit,
Graduate Student