Skip to content

AttributeError: 'module' object has no attribute 'Show' #4

@ByReaL

Description

@ByReaL

i have this VB code that shows a form and when you click on a button it opens a different form

Private Sub cmdABC_Click()
ABC_Form.Show
frmMain.Hide
End Sub

this gets translated in python in ABC_Form.Show() and when i click the button on the main form i get an error that there is
AttributeError: 'module' object has no attribute 'Show'

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\PythonCard\widget.py", line 408, in _dispatch
handler(background, aWxEvent)
File "C:/work/frmMain.py", line 50, in on_cmdABC_Click
ABC_Form.Show()
AttributeError: 'module' object has no attribute 'Show'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions