v_sim.UiFieldChooser

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.FileChooser Gtk.FileChooser GObject.GInterface->Gtk.FileChooser GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Dialog Gtk.Dialog Gtk.FileChooserDialog Gtk.FileChooserDialog Gtk.Dialog->Gtk.FileChooserDialog Gtk.FileChooser->Gtk.FileChooserDialog v_sim.UiFieldChooser v_sim.UiFieldChooser Gtk.FileChooserDialog->v_sim.UiFieldChooser Gtk.Widget->Gtk.Container Gtk.Window->Gtk.Dialog

Subclasses:

None

Methods

Inherited:

Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.FileChooser (63)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (parent)

getFileFormat ()

getFit ()

setOptions (wd)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39), Gtk.FileChooser (11)

Style Properties

Inherited:

Gtk.Dialog (4), Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.FileChooser (5)

Name

Short Description

validate

Gets emitted when the user choose a file and a format has been validated for it.

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.FileChooser (5)

Class Details

class v_sim.UiFieldChooser(*args, **kwargs)
Bases:

Gtk.FileChooserDialog

Abstract:

No

Structure:

v_sim.UiFieldChooserClass

Private structure to store informations of a v_sim.UiFieldChooser object.

classmethod new(parent)
Parameters:

parent (Gtk.Window or None) – the parent window.

Returns:

a newly created file chooser.

Return type:

Gtk.Widget

Create a filechooser, specific for v_sim.ScalarField files.

New in version 3.7.

getFileFormat()
Returns:

the v_sim.ScalarFieldMethod that correspond to the selected file.

Return type:

v_sim.ScalarFieldMethod

After the self returns, it has validate the selected file on possible file formats.

New in version 3.7.

getFit()
Returns:

if the box should be fitted or not.

Return type:

v_sim.UiBoxFit

The v_sim.ScalarField objects can be fitted on the #visuData box or impose their boxes to v_sim.Data.

New in version 3.7.

setOptions(wd)
Parameters:

wd (Gtk.Widget) – some additional options to add to the dialog.

One can add widgets to add more options to the chooser. If the chooser already has some option widgets, they are destroyed.

New in version 3.7.

Signal Details

v_sim.UiFieldChooser.signals.validate(ui_field_chooser, field)
Signal Name:

validate

Flags:

RUN_LAST, NO_RECURSE

Parameters:

Gets emitted when the user choose a file and a format has been validated for it.

New in version 3.7.