Nice to meet you.
I am not good at English.
I have a question about pythonGUI.
windows10
Cinema4D S24.037
I created a window with buttons.
I want to touch the “object manager” with the window open.
But, if you set the "dlgtype" of' “.open” to "DLG_TYPE_ASYNC",
I can no longer click the button of the created window.
With the “DLG_TYPE_MODAL” setting, the button works, but
I'm in trouble because other windows can't be touched.
Is there any other way?
I would like you to tell me.
Please.
import c4d
from c4d import gui
class MyDialogs(c4d.gui.GeDialog):
def CreateLayout(self):
self.AddButton(1201,c4d.BFH_LEFT,200,0,"button")
return True
def Command(self,id,msg):
if id == 1201:
print("push button")
return True
# Main function
def main():
dlg = MyDialogs()
dlg.Open(c4d.DLG_TYPE_ASYNC,0,-1,-1,100,100,0)
c4d.EventAdd()
# Execute main()
if __name__=='__main__':
main()