Have some way to create a panel with texturized background side by side?
Perhaps this will help:
http://lists.wxwindows.org/archive/wxPython-users/msg19676.html
Regards,
···
On Tue, 2003-08-19 at 13:07, Luiz Siqueira Neto wrote:
Have some way to create a panel with texturized background side by side?
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555
Cliff Wells wrote:
···
On Tue, 2003-08-19 at 13:07, Luiz Siqueira Neto wrote:
Have some way to create a panel with texturized background side by side?
Perhaps this will help:http://lists.wxwindows.org/archive/wxPython-users/msg19676.html
Regards,
Thanks.
Cliff Wells wrote:
···
On Wed, 2003-08-20 at 06:11, Luiz Siqueira Neto wrote:
Cliff Wells wrote:
On Tue, 2003-08-19 at 13:07, Luiz Siqueira Neto wrote:
Have some way to create a panel with texturized background side by side?
Perhaps this will help:
http://lists.wxwindows.org/archive/wxPython-users/msg19676.html
Regards,
Sorry but don't work. : (
What exactly doesn't work? Did you change the line in the Frame class
that refers to a bitmap that you might not have on your system?class Frame(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, id, title)
---> image = wxImage('/usr/share/pixmaps/gnome-home.png',
wxBITMAP_TYPE_PNG)
panel = TiledPanel(self, -1, image)If that doesn't fix it, copy&paste the traceback and post it here.
Regards,
Yes I change this and the bitmap appear on panel, but don't appear side by side, have spaces between the bitmap. I try solve this but I don't know how "DrawBitmap" work on "wxPaint".
If you have some working example it will help a lot.
Thanks about help
Try tweaking self.height and self.width in this method to close the gap:
class TiledPanel(wxPanel):
def __init__(self, parent, id, image):
wxPanel.__init__(self, parent, id)
self.image = wxBitmapFromImage(image)
# self.height, self.width = image.GetHeight(), image.GetWidth()
self.height, self.width = image.GetHeight(), image.GetWidth() - 1
# ^^^^^^^^^^^^^^^^^^^^
EVT_PAINT(self, self.OnPaint)
Regards,
···
On Thu, 2003-08-21 at 06:53, Luiz Siqueira Neto wrote:
Cliff Wells wrote:
>On Wed, 2003-08-20 at 06:11, Luiz Siqueira Neto wrote:
>
>
>>Cliff Wells wrote:
>>
>>
>>
>>>On Tue, 2003-08-19 at 13:07, Luiz Siqueira Neto wrote:
>>>
>>>
>>>
>>>
>>>>Have some way to create a panel with texturized background side by side?
>>>>
>>>>
>>>>
>>>>
>>>Perhaps this will help:
>>>
>>>http://lists.wxwindows.org/archive/wxPython-users/msg19676.html
>>>
>>>Regards,
>>>
>>>
>>>
>>>
>>>
>>Sorry but don't work. : (
>>
>>
>
>What exactly doesn't work? Did you change the line in the Frame class
>that refers to a bitmap that you might not have on your system?
>
>class Frame(wxFrame):
> def __init__(self, parent, id, title):
> wxFrame.__init__(self, parent, id, title)
>---> image = wxImage('/usr/share/pixmaps/gnome-home.png',
> wxBITMAP_TYPE_PNG)
> panel = TiledPanel(self, -1, image)
>
>
>If that doesn't fix it, copy&paste the traceback and post it here.
>
>Regards,
>
>
>
Yes I change this and the bitmap appear on panel, but don't appear side
by side, have spaces between the bitmap. I try solve this but I don't
know how "DrawBitmap" work on "wxPaint".
If you have some working example it will help a lot.
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555
My apologies for not trimming that last post.
···
On Thu, 2003-08-21 at 11:05, Cliff Wells wrote:
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 (800) 735-0555