Want to Join Us ?

you'll be able to discuss, share and send private messages.

Bug 7.2 PyQt5 app bug

Discussion in 'Plugins' started by storm shadow, Jul 11, 2019.

Share This Page

  1. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Hello
    There is a wierd problem with running PyQt5 apps with ida 7.2+7.3
    running a PyQt5 plugin via the plugin menu(ida_idaapi.IDAPython_ExecScript) runs the plugin but PyQt5 external window (if the app have a external window) wont show.
    But in the log window you can see the app is runing.
    But if you use file>>open scriptfile the app runs and show correct.

    See test plugin.

    Any idea what the reason could be?
     

    Attached Files:

    Last edited: Jul 11, 2019
  2. computerline

    Well-Known Member Ida Pro Expert

    The main in Style_Paste_main.py not run, just remove it, the plugin will run :D

    Code (Python):

    ...............................
                QtWidgets.QMessageBox.information(self.vindu,
                        'Unable to open file', file.errorString())
            os.chdir(str(self.path))
     
    import sys
    #app = QtWidgets.QApplication.instance()
    #if not app:
         #app = QtWidgets.QApplication([])
    StyleSheetEditor = QtWidgets.QWidget()
    ui = Ui_StyleSheetEditor()
    ui.setupUi(StyleSheetEditor)
    StyleSheetEditor.show()
    print "helllllllllllllllllllllllooooooooooooooooooooo"
        #app.exec_()
     
     
     
    Last edited by a moderator: Jul 11, 2019
    Rip Cord and storm shadow like this.
  3. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    how do you mean ?

    if i remove


    Code (Text):
    if __name__ == '__main__':
    import sys
    it still dont show.
    Problem is not the plugin not running , but not showing in a seperate window.
    you can see the plugin is loaded in the log menu, just not showing.
     
  4. storm shadow

    Techbliss Owner Admin Ida Pro Expert Developer

    Sorry actuelly removing the main does show the widget.
    It could however have unknown conflicts on bigger apps with many widgets.
     
    computerline likes this.
Top