I am trying to use a button in a toolbar that is pressed in by default. Unfortunately it seems, that if it is initially in this state (no matter if I set it with SetOn, SetDown or Toggle), one requires double click at first to switch it to other state. First click does not seem to edit signal. Here is how I initialize it:
Replace self.tbPhysical.SetDown() by self.tbPhysical.SetState(kButtonEngaged)
[quote=“LeWhoo”]And the second question is: can I make my pyROOT app look for xpm icons in it’s own, relative path?[/quote]This is not a problem with standard standalone (C++) ROOT application. So it should be just fine with Python…
No idea, it works for me in C++ with relative and absolute paths… You can maybe try to use something like “gSystem->DirName(gInterpreter->GetCurrentMacroName())” to obtain full path in C++. Maybe something like “path.dirname(file)” in Python?