Python Forum
Convert the typical MATLAB GUI creator code to Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert the typical MATLAB GUI creator code to Python
#1
Hi there,

I'm very new to Python. I'd like to seek your thoughts and expertise on how to convert the following MATLAB code to Python.

    function varargout = compression(varargin)
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @compression_OpeningFcn, ...
                       'gui_OutputFcn',  @compression_OutputFcn, ...
                       'gui_LayoutFcn',  [] , ...
                       'gui_Callback',   []);
    if nargin && ischar(varargin{1})
        gui_State.gui_Callback = str2func(varargin{1});
    end

    if nargout
        [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
    else
        gui_mainfcn(gui_State, varargin{:});
    end
Thanks in advance for sharing your solutions.
Larz60+ write Jul-05-2021, 03:47 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
These tags work for other programming languages as well.
Fixed for you this time. Please use bbcode tags on future posts.
Reply
#2
google: 'python matlab'

example: https://www.mathworks.com/products/matla...ython.html

Make an attempt at conversion, we will be glad to help when you encounter problems.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020