Global variable is modified in not called method

globalCounter = False

class SecondWindow(wx.Frame):
    def __init__(self, .............
	
	def resetCount(self):
        global globalCounter 
        globalCounter = True #This variable is modified to True if SecondWindow() instance is created
		#this method is not called and debugger don't stop at this line breakpoint

Python 3.8
Regards,
Milos

Your question is incomplete. I do the following:

>>> globalcounter = False
>>> class SecondWindow():
...    def __init__(self, kwakker):
...        self.kwakker = kwakker
...    def resetCount(self):
...         global globalcounter
...         globalcounter = True
... 
>>> globalcounter
False
>>> sw = SecondWindow("a")
>>> globalcounter
False

No problem here. Please create a minimal working example of your issue.

I had binded resetCount method to button with brackets therefore method was passing automatically, my apologize:

self.reset.Bind(wx.EVT_TOGGLEBUTTON, self.resetCount())
Regards,
Milos