Search code examples
pythonwxpythonwxwidgets

How to center a wx.BusyInfo() - wxpython?


Looking at the API there doesn't seem to be a way to center a wx.BusyInfo message to the center of the screen like with other pop up modals by using Center().

Is there a way to center wx.BusyInfo()?


Solution

  • not with wx.BusyInfo, as far as I know (although it should be already centered by default... have you tried not giving a parent window to the wx.BusyInfo?).

    Alternatively, you may want to try wx.lib.agw.PyBusyInfo instead: if it doesn't do exactly what you need, you can always hack it to suit your needs (it's pure Python).

    Hope this helps.

    Andrea.