Gui Option throws error
See original GitHub issueOkay so I’ve spent some time digging through the current prdgui.py. The original error I got was
Traceback (most recent call last):
File "C:\Users\kyle\progrockdiffusion\prdgui.py", line 77, in run
self.func()
TypeError: do_run() missing 1 required positional argument: 'batch_num'
After moving prdgui.rungui(do_run(), side_x, side_y)
a few lines down in prd.py and changing it to prdgui.run_gui(do_run(batch_image), side_x, side_y)
I get a new error:
File "prd.py", line 2859, in <module>
prdgui.run_gui(do_run(batch_image), side_x, side_y)
File "prd.py", line 1741, in do_run
prdgui.update_image(image)
File "C:\Users\kyle\progrockdiffusion\prdgui.py", line 94, in update_image
window.setPixmap(img)
AttributeError: 'NoneType' object has no attribute 'setPixmap'
I have played around with the code and it seems that the global variable window
is not being changed from the value None
to Window(worker_func, width, height)
, or at least it is not sticking? I don’t have a clue. There is was too much OOP going on. My head explodes with all the constructors and self and idk… I need to go back to the basics.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Exception Handling in a gui application
I e.g. have a function that saves a company newly created by the user in a (embedded) database. The function for saving the...
Read more >Error Unable to Create GUI Exiting Kodi all Version 6 Easy ...
Error Unable to Create GUI Exiting #Kodi all Version 6 Easy Ways Fixedunable to ... windows 10, unable to create gui exiting windows...
Read more >Installer UI Mode Error on windows 10
The installer cannot run in UI mode. to specify the interface mode, use the -i common-line option, followed by the UI mode identifier....
Read more >Error Handling in Agents and Custom User Interfaces
When an agent cannot complete an operation, the operation method throws an exception. The error result propagates back through the server to the...
Read more >Errors in GUI "Operation could not complete due to a ...
You have recently upgraded from v9 using the "restore from previous database" option and are getting errors in the GUI when accessing various...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah you could totally just have a direct install, conda is not required it just makes it easy to have a contained environment. There are several people on Discord who have setup PRD to run via a Discord bot that might be able to help you there (reach out to bit_FLIP on the Disco Diffusion discord, he has one called Synthia).
Personally, I think the answer might be to simply create a GUI that can read/write settings files, provide controls and input mechanisms for those settings, and select command line options, and then fire off prd.py and display the results as they render. I don’t see a major reason to having the gui be inside prd itself, at least off the top of my head.