v_sim.UiDumpDialog

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 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 v_sim.UiDumpDialog v_sim.UiDumpDialog Gtk.Dialog->v_sim.UiDumpDialog 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)

Structs:

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

class

new (dataObj, parent, suggestedFilename, suggestedWidth, suggestedHeight)

getCancelButton ()

getFilename ()

getHeight ()

getProgressBar ()

getType ()

getWidth ()

start ()

stop ()

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)

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)

Fields

Inherited:

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

Class Details

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

Gtk.Dialog

Abstract:

No

Structure:

v_sim.UiDumpDialogClass

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

classmethod new(dataObj, parent, suggestedFilename, suggestedWidth, suggestedHeight)
Parameters:
  • dataObj (v_sim.Data or None) – a v_sim.Data object (can be None) ;

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

  • suggestedFilename (str or None) – a string or None.

  • suggestedWidth (int) – a positive suggested width for exportation or a negative value to get the default.

  • suggestedHeight (int) – idem for height.

Returns:

a newly created v_sim.UiDumpDialog widget.

Return type:

Gtk.Widget

A v_sim.UiDumpDialog widget is complete dialog window widget, but it is already prepared for dumping, proposing known file formats. It is usefull to get an filename to export to. It has also a progress bar that can illustrate the process. The given dataObj argument is used to initialize some values related to the data to be dumped.

getCancelButton()
Returns:

a pointer to the cancel button.

Return type:

Gtk.Button

Retrieve interesting widget.

getFilename()
Returns:

a read-only string.

Return type:

str

Retrieve the chosen filename.

getHeight()
Returns:

the height value.

Return type:

int

Retrieve request image size.

getProgressBar()
Returns:

a pointer to the progress bar.

Return type:

Gtk.ProgressBar

Retrieve interesting widget.

getType()
Returns:

the selected format (v_sim.FileFormat and write method).

Return type:

v_sim.Dump

Retrieve the chosen v_sim.Dump.

getWidth()
Returns:

the width value.

Return type:

int

Retrieve request image size.

start()

Make the file chooser part insensitive during dump, only the progress bar and the abort button are kept sensitive.

stop()

Return the filechooser to a sensitive state.