Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does wxFormbuilder supported command line based code generation? #764

Open
pvkarthikk opened this issue Dec 9, 2022 · 5 comments
Open

Comments

@pvkarthikk
Copy link

pvkarthikk commented Dec 9, 2022

I am using wxFormbuilder for my project. I am trying to setup the batch command to build my project. My friend used to create gui and I have to generate and use the code. For now, I am opening the builder and generting the code everytime, when he commits.
So, i want to know, is there way to generate code without opening the wxFormbuilder?

@SpareSimian
Copy link

If you run the program from the command line with /h, you'll get this output:

C:\Program Files\wxFormBuilder>.\wxFormBuilder.exe -h

C:\Program Files\wxFormBuilder>15:30:24: Usage: wxFormBuilder [/g] [/l <str>] [/h] [/v] [File to open.]
  /g, --generate              Generate code from passed file.
  /l, --language=<str>        Override the code_generation property from the passed file and generate the passed languages. Separate multiple languages with commas.
  /h, --help                  Show this help message.
  /v, --version               Print version information.

@pvkarthikk
Copy link
Author

pvkarthikk commented Dec 10, 2022

@SpareSimian Thanks for your response :)
I tried with 3.10.1 and 3.9.0, I didnt get that help message. May I know, which version are you using?
image

@SpareSimian
Copy link

SpareSimian commented Dec 10, 2022 via email

@adisoc
Copy link

adisoc commented Jul 22, 2023

I was not able to get the command line options to appear either on Windows 10. I tried the last release (3.10.1), an older release (3.8.1) and the latest artifact from master (19bcc29).

Edit: It appears to work in 19bcc29 but silently - a noname.py file is created with I try to generate a Python file. The expected command line output is visible only when run from a MINGW64 prompt but not from a standard Windows command prompt (CMD.exe).

@sodevel
Copy link
Member

sodevel commented Jul 24, 2023

The issue here is, under Windows an application must be marked as either console application or GUI application. wxFB is marked as GUI application. I am not an expert in this field, but i know that windows does not allocate a console for GUI applications, hence they cannot output text through e.g. stdout. Apparently this behavior seems to be controlled by the launching "terminal", cmd.exe behaves like this, the MinGW shell apparently not and allocates a console even for GUI applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants