473,664 Members | 3,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wxPython OGL: How make LineShape text b/g transparent?

(Having problems receiving wxPython mailing list entries, so I'll ask here.)

I'm using wxPython 2.5.4, windows ansi version, on Python 2.4, the OS in
Win98SE. My application manipulates a graph, with CircleShapes for nodes and
LineShapes for arcs. The user needs to be able to get and set text on a arc.
When I use LineShape.AddTe xt(), a large rectangle of background colour
blocks out much of the line, crucially including the arrow at the midpoint.

How I can I make the text b/g transparent so the lines can be seen, and
further is it possible programmaticall y to displace the text such that the
arrow is not covered?

Thanks

John
Jul 19 '05 #1
0 1363

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2899
by: Grant Edwards | last post by:
Can anybody recommend a good book on wxPython? Are there any books on wxPython? I've been trying to learn wxPython and/or wax for a few weeks, and I'm just not getting it. wxWindows seems to be more low-level than the other GUI toolkits I've used (Tk, GTK, and Trestle), and there are all sorts exposed details in wxWindows/wxPython that I find weird.
25
3345
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard Python GUI toolkit is that Tkinter was there first." - Guido van Rossum Guess, that answers my question, but isn't "Tkinter was there first" a very bad answer? :) It is kinda ugly too, so I wonder why it can't be replaced? Or maybe another GUI...
7
3099
by: PD | last post by:
Hi Everyone, I am sort of a new developer to python and working in an academic environment. I climbed the learning curve on wxPython far enough to get the functionality I want out of it so far... Now Im in need of a diagramming library (something visio-like) to use for my software and the only option I have seen is OGL. Yet I read that OGL is dead, no longer maintained, obsucure and lacking documentation. Instead of taking a leap of...
1
2561
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have everything. The make install in $WXDIR seemed to go fine. I have the libxw* libraries in my lib/ directory libwx_base-2.5.so@ libwx_gtk_adv-2.5.so.3.0.0* libwx_base-2.5.so.3@ libwx_gtk_core-2.5.so@
10
4962
by: Mario | last post by:
Hello all, I'm trying hard to make possible to print some simple text from python to the default printer using wxPython, after days of internet searches I found this page: http://wiki.wxpython.org/index.cgi/Printing but is impossible to use this script even if I do exactly as said there. I think the script is buggy or I am not able to use it, even if seems very simple to use... Anyone can give me an hint on how to easily and simply print...
5
4788
by: cravephi | last post by:
I would like to make a software like simulink: http://www.mathworks.com/cmsimages/sl_mainpage_wl_7488.gif using python. In order of bulding the interface (drag&drop block, link system between the blocks, run the simulation, double click on a block to open its properties, ...) which library will make my job easyer, PyQT or WxPython ?
0
1023
by: Andrzej | last post by:
Hi! I'm writing a simple digital circuit simulator in order to familirise with (wx)python. I thought it would be an easy task with help from ogl lib. After a not so brief encounter with wx specs I've started to code but I just can't figure out how to get user-defined attachment points to work. I've tried to call SetAttachmentMode(True) for shapes that should be connected and then: dc = wx.ClientDC(self.canvas) # ->self.canvas =...
2
2167
by: BjornB | last post by:
Hi! I wonder if OGL supports laying out the objects drawn in a nice way, or do I have to specify the (x,y) of all objects myself? I woulld like to draw a "tree graph": O / \ o o /|\ o o o /|\
5
1266
by: wildjack | last post by:
Hi everybody, I am developing a little graph editor using python 2.5 and wx 2.8. Whenever I try to add text to a line shape I get a big rectangle on the background which covers the shapes. Is there a way to render the text on a transparent background? I googled and found the same question in several places, but no answers :) The second thing is: If I am drawing a lineshape as an spline, control points are fixed. Is there a way to update...
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.