Drag image

Hi All,

Would someone mind looking at this for me? Sorry to attach the whole file and the jpgs, but I thought it would be easier to understand.

What I want to do is to display the text without the paper.bmp on line 71 being hidden by the text background colour. Should be easy, but I can’t do it : )

Also, at the moment the text it just stuck to the “paper”. How could I drag this, but being bound in the paper area and fix the code on line 104 so it’s properties change and not the paper’s.

Thanks for any help,

Malcolm

Scroll text.py (11 KB)

Paper.jpg

PAPER018.JPG

Hi All,

Would someone mind looking at this for me? Sorry to attach the whole
file and the jpgs, but I thought it would be easier to understand.

It would have been had you included enough to actually run the code. It
seems to be missing an image, plus it apparently is meant to be run from
the demo directory? Either way, I made a brief attempt to fix it but
only got an empty window (Linux/GTK).

What I want to do is to display the text without the paper.bmp on line
71 being hidden by the text background colour. Should be easy, but I
can't do it : )

Try calling dc.SetBackgroundMode(wx.TRANSPARENT) prior to drawing the
text.

Also, at the moment the text it just stuck to the "paper". How could
I drag this, but being bound in the paper area and fix the code on
line 104 so it's properties change and not the paper's.

Not sure since I wasn't able to run your example code. I'm not sure
what "stuck to the paper" would mean in a GUI context nor can I figure
out exactly what you're asking :stuck_out_tongue:

Regards,
Cliff

···

On Mon, 2004-10-18 at 17:34 +0100, Malcolm Clift wrote:

--
Cliff Wells <clifford.wells@comcast.net>

Hi Cliff,

Thanks for looking at this. I’ve removed the import of the images module, but as I’m a begginer, I can’t remove the run module. Every time I try I get init problems.

Thanks,

Malcolm

Scroll text2.py (10.7 KB)

Well, let me ask you this: are you trying to make something that runs
under the wxPython demo or did you just use one of the demos as a model?

Regards,
Cliff

···

On Mon, 2004-10-18 at 18:29 +0100, Malcolm Clift wrote:

Hi Cliff,

Thanks for looking at this. I've removed the import of the images
module, but as I'm a begginer, I can't remove the run module. Every
time I try I get init problems.

--
Cliff Wells <clifford.wells@comcast.net>

Hi Cliff,

I just used the demo as a starting point and got trapped by the run module. Chris is right when he says that I need to learn the basics first. I’m just trying to see if something is possible first.

Malcolm