Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: UI::Dialog fselect

by Marshall (Canon)
on Apr 21, 2016 at 12:09 UTC ( [id://1161082]=note: print w/replies, xml ) Need Help??


in reply to UI::Dialog fselect

I installed UI::Dialog and got the following results, something is wrong as shown below... Missing module?
#!/usr/bin/perl use strict; use warnings; use 5.010; use UI::Dialog; my $d = new UI::Dialog ( backtitle => 'Demo', title => 'Default', height => 20, width => 65 , listheight => 5, ## this is a problem ### order => [ 'zenity', 'xdialog' ] ); ); # Either a Zenity or Xdialog msgbox widget should popup, # with a preference for Zenity. $d->msgbox( title => 'Welcome!', text => 'Welcome one and all!' ); __END__ Prints: +------------------------------------------------------------------- +----------+ | Demo + | +------------------------------------------------------------------- +----------+ | + | | +----------------------------------------------------------------- +--------+ | | | Welcome! + | | | +----------------------------------------------------------------- +--------+ | | | Welcome one and all! + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | | + | | | +----------------------------------------------------------------- +--------+ | | + | +------------------------------------------------------------------- +----------+ [ Press Enter to Continue ] Process completed successfully

Replies are listed 'Best First'.
Re^2: UI::Dialog fselect
by stangoesagain (Acolyte) on Apr 21, 2016 at 17:41 UTC

    That's an idea - I've tried with zenity being preferred and fselect assigns value to variable as expected. I don't have xdialog installed so if I try xdialog I get "unable to load suitable backend" but not terminal output like yours.

    I suspect kdialog part of UI::Dialog hasn't been updated to work with latest KDE. On my system there was a jump from 4 to 5, not sure about exact version when it got broken. I use kdialog for file selection all the time and it works flawlessly when evoked by bash scripts.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found