YaST2 Developers Documentation: YCP UI Reference: Widgets



YCP UI Widget Reference

Back to the widget index

PackageSelector Complete software package selection

Description

A very complex widget that handles software package selection completely transparently. Set up the package manager ( the backend ) before creating this widget and let the package manager and the package selector handle all the rest. The result of all this are the data stored in the package manager.

Use UI::RunPkgSelection() after creating a dialog with this widget. The result of UI::UserInput() in a dialog with such a widget is undefined - it may or may not return.

This widget gets the ( best ) floppy device as a parameter since the UI has no general way of finding out by itself what device can be used for saving or loading pacakge lists etc. - this is best done outside and passed here as a parameter.

Arguments

None


Optional

string floppyDevice

Special Properties

None


Options

`opt(`youMode) start in YOU ( YaST Online Update ) mode
`opt(`updateMode) start in update Mode

Sample Usage

`PackageSelector( "/dev/fd0" )

Examples


Back to the widget index


YaST2 Developers Documentation: YCP UI Reference: Widgets

Generated Fri May 21 12:39:01 2004