This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdialog : several inputs

Tags: None
(comma "," separated)
swehner
Registered Member
Posts
2
Karma
0

kdialog : several inputs

Thu Jan 22, 2009 8:21 pm
Looks like kdialog is the simple kde way to collect options from the user.

How do I collect several values? I'd like to allow the user to specify a width value and a height value with one dialog.

I tried this, although the documentation doesn't mention this possibility:

kdialog --inputbox 'Width' 500 --inputbox 'Height' 600

But only the Height field is shown.

Stephan
swehner
Registered Member
Posts
2
Karma
0

RE: kdialog : several inputs

Fri Jan 23, 2009 8:29 am
swehner wrote:Looks like kdialog is the simple kde way to collect options from the user.

How do I collect several values? I'd like to allow the user to specify a width value and a height value with one dialog.

I tried this, although the documentation doesn't mention this possibility:

kdialog --inputbox 'Width' 500 --inputbox 'Height' 600

But only the Height field is shown.

Stephan


Is there some other kde way to achieve this?

Thanks

Stephan
User avatar
msoeken
Mentor
Posts
300
Karma
4
OS

RE: kdialog : several inputs

Fri Jan 23, 2009 8:45 am
Seems that this is not possible with kdialog application. Are you familiar with C++ or Python. You could write a wrapper around the corresponding classes from KDE API.


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell