User talk:Aseigo: Difference between revisions
(question, how widgets can be moved) |
No edit summary |
||
Line 11: | Line 11: | ||
activityById(63).widgetById(66).geometry.moveTo(90, 100) | activityById(63).widgetById(66).geometry.moveTo(90, 100) | ||
the command execution causes not | the command execution causes not an error msg, even the runtime of the script will be indicated. furthermore the functions adjusted(), setRect(), moveLeft() and so on do not help me to move the widget at all. | ||
On the other hand I certainly now, that activityById(63).widgetById(66) points to the wished widget, because I can test it via | On the other hand I certainly now, that activityById(63).widgetById(66) points to the wished widget, because I can test it via | ||
print("height: "+activityById(63).widgetById(66).geometry.height) | print("height: "+activityById(63).widgetById(66).geometry.height) | ||
print("width: "+activityById(63).widgetById(66).geometry.width) | print("width: "+activityById(63).widgetById(66).geometry.width) | ||
Revision as of 14:51, 1 October 2010
Hello Aseigo, I have been using KDE for some years, but I am a newbie in contributing, posting and posing questions in forums.
I was able using Plasma Destkop Scripting to solve some problems concerning the width of my panel. Thank you very much for that.
unfortunately, I cannot move an existing widget, which belongs to an activity. The activitys id is 63, the widgets id is 66. The type of the widget is "folderview".
And that´s my command, I unsuccessfully execute via the "Desktop Shell Scripting Console":
activityById(63).widgetById(66).geometry.moveTo(90, 100)
the command execution causes not an error msg, even the runtime of the script will be indicated. furthermore the functions adjusted(), setRect(), moveLeft() and so on do not help me to move the widget at all.
On the other hand I certainly now, that activityById(63).widgetById(66) points to the wished widget, because I can test it via
print("height: "+activityById(63).widgetById(66).geometry.height)
print("width: "+activityById(63).widgetById(66).geometry.width)
both print-commands return the correct values. Would you please explain me, how my widget with id 66 can be moved via Plasma Destkop Scripting?
Greetings, herbie