-
Notifications
You must be signed in to change notification settings - Fork 367
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
XRC generates object class="unknown" name="dataViewListCtrlLog" #771
Comments
Components for which wxFB does not contain XRC import or export code get exported as |
Actually this control works perfectly with the Python code generated in the
python tab. The control's columns are added after the control is
instantiated, allowing greater flexibility. In my usage I require this
flexibility.
You are likely correct that this control needs code added or corrected in
FormBuilder. I suspect someone recognized the issue and was waiting for the
wxpython team to resolve the issue.
When the xrc xml code is edited specifying the class, it does not render
properly, so I realize you cannot fix it on your own.
There truly is a problem with wxPtyhon rendering from the edited xrc which
i have reported to the wxpython team. The control ignores the size option,
and i can't resize it which is a wxpython issue. Hopefully your team and
wxpython' s team can work together and resolve this issue.
It is rather annoying that the problem exists.
In the meantime I created a static text object in the sizer cell, and set
its width, and height to reserve space. Then after Xrc is processed, I
added the wxpthon code to create the object, and place it over the static
text object. Fortunately the loading of the Xrc file steps over the objects
with class = unknown.
Please keep me advised as your teams work to resolve this
…On Tue, Feb 14, 2023 at 12:49 PM Steffen Olszewski ***@***.***> wrote:
Components for which wxFB does not contain XRC import or export code get
exported as unknown class. There are two possible reasons why wxFB does
not contain such code, either because XRC does not support this control or
because no one has added such code to wxFB. Looking at the current XRC
file format <https://docs.wxwidgets.org/latest/overview_xrcformat.html>,
it has some very limited support for this control, basically it only
supports the control itself but not any added columns.
—
Reply to this email directly, view it on GitHub
<#771 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWDE6TJ2MOW2QJVE4Y5FULDWXPARBANCNFSM6AAAAAAUXCR24Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
XRC != code. XRC is a declarative way to describe GUIs but offers much less functionality than code. Your use case you described above is, according to the documentation i linked in my last post, currently not possible to realize because this feature is not available in wxWidgets itself. So, to get your use case done, first wxWidgets must be updated. Then these changes must be ported to wxPython. And as the last step wxFB must be updated. Right now, your use case can only be done by code. I can't say anything about your wxPython issues, i don't do any Python. The best i could do right now is, add XRC support for what is currently possible, that is the control itself together with basic properties like style flags. However, i currently don't have the time for this, so PRs welcome. |
Operating system: WIndows 10 Version: 10.0.10011.16384
wxPython version & source: 4.2.0 installed with pip
Python version & source: Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Description of the problem:
The program and xrc files created by wxFormbuilder 3.10.1
python code
self.dataViewListCtrlLog = wx.dataview.DataViewListCtrl( self.panelMain, wx.ID_ANY, wx.DefaultPosition, wx.Size( 280,180 ), 0 )
xrc code has an error Search for "unknown"
The text was updated successfully, but these errors were encountered: