You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I fill in the arithmetic expression in the id of wxWindow, the generated python code is prepended with some strange content, which of course is incorrect content.
Example : Fill in the id field with wxID_HIGHEST + 22000 + 1 etc.
The wrong code looks like this:
# -*- coding: utf-8 -*-############################################################################# Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)## http://www.wxformbuilder.org/#### PLEASE DO *NOT* EDIT THIS FILE!###########################################################################importwximportwx.xrcwx.ID_HIGHEST+22000=1000# <---------- These are incorrectwx.ID_HIGHEST+22000+1=1001# <---------- These are incorrectwx.ID_HIGHEST+22000+2=1002# <---------- These are incorrectwx.ID_HIGHEST+22000+3=1003# <---------- These are incorrect############################################################################# Class cpl_tool_status###########################################################################classcpl_tool_status ( wx.Panel ):
The text was updated successfully, but these errors were encountered:
There is no expression parser inside wxFormBuilder, values are usually used as-is. In these days you should not use static ids for your widgets anymore (except stock ids), just use dynamically created ids by wxID_ANY. If you want to modify the starting value of custom static ids, use the project property first_id.
When I fill in the arithmetic expression in the
id
of wxWindow, the generated python code is prepended with some strange content, which of course is incorrect content.Example : Fill in the
id
field withwxID_HIGHEST + 22000 + 1
etc.The wrong code looks like this:
The text was updated successfully, but these errors were encountered: