Re: Objects properties - Python console

Ooh, I will chime in here.
Before I have thought of wanting a "Show Attributes" button in the
Properties dialog.
I use ext_attributes in my custom shapes as well as an extended
circuit shape set. This would be handy but would require then text
alignment properties as well?

The text would be something like: "id=VT2; type=12FK6" or "id=R3;
ohms=22; power=...", etc.

If this seams reasonable, I will submit a feature request. Otherwise,
if this is trivial, where should I start looking in the c to make
changes? and I will try to contribute a patch.


On Tue, 15 Feb 2005 20:30:41 +0100 (CET), Lars Clausen <lars raeder dk> wrote:
Daniel de Almeida sagde:
Lars Clausen wrote:

The UML properties are currently hardcoded in C in a *very* hacky way
should certainly not be emulated.  I don't think the Python plugin can
handle adding similar things.  Which exact properties are you looking

I have to use Dia for an electronical project.
I'd like to create new shapes with specific properties.
For example, I'd like to set in the properties of an adder how many bits
adder will manipulate.
So I'm looking for the best way to create a dialog-properties where I
could set
some basic information.
My first idea was to use python plugin (that's what my professor said) to
new properties. But if it's possible to implement this in C maybe it would
So if someone has some information to help... I'm quite blocked for the

For such simple properties, the shape format has the ability to allow
extra attributes using the ext_attributes tag.  See the Circuit -
hresistor shape for an example.

Dia-list mailing list
Dia-list gnome org
FAQ at
Main page at

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]