ReshapeBarcodeWindow Class

ReshapeBarcodeWindow Class

class kalmus.tkinter_windows.ReshapeBarcodeWindow.ReshapeBarcodeWindow(barcode_1, barcode_2, axes, canvas)[source]

Bases: object

ReshapeBarcodeWindow Class GUI window for user to reshape the selected barcode into the desirable shape

reshape()[source]

Enable or disable the input parameters entry if the reshape radio button is selected

reshape_resize_barcode()[source]

Reshape or resize the barcode using the given parameters

resize()[source]

Enable or disable the input parameters entry and update the corresponding text if the resize radio button is selected

scale()[source]

Enable or disable the input parameters entry and update the corresponding text if the scale radio button is selected

update_scale_factor(barcode, old_barcode_size)[source]

Update the scale factor of the barcode

Parameters
  • barcode -- The barcode to update

  • old_barcode_size -- The old size of that barcode

update_size_label()[source]

Update the size label if the currently selected barcode is changed

updated_new_barcode()[source]

Update the resized/reshaped barcode to the MainWindow of the kalmus