Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • bliss bliss
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 548
    • Issues 548
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 140
    • Merge requests 140
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bliss
  • blissbliss
  • Issues
  • #3185

Closed
Open
Created Jan 19, 2022 by Yves Watier@watierDeveloper

In User dialogs. UserFloatInput default value seems not taken into account.

Dear bliss team,

I am making a menu in a bliss shell using the user_dialog. It looks like the default value is buggy or not behaving as I understand from the documentation.

Within a bliss session:

from bliss.shell.cli.user_dialog import UserFloatInput, UserCheckBox, UserIntInput, UserMsg, UserYesNo from bliss.shell.cli.pt_widgets import display

combien = UserFloatInput(label="Max temperature sur input 1", defval=9999.9) res = display(combien, title="Modification of safety - INTERLOCKS" )

One would expect to have defval value already filled in. As to have a default value, especially so that users just validate and do not type anything. Alas : Capture

And if validated without filling the return value is '' (empty) and not the default value.

Thanks, Yves

Assignee
Assign to
Time tracking