Skip to content

Commit

Permalink
Move some imports around
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Davis authored and Luke Davis committed Mar 22, 2024
1 parent ae425f2 commit 16d9506
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addon/globalPlugins/evtTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
from comtypes import COMError
from collections import deque
from typing import Optional, List
import wx

from gui.dpiScalingHelper import DpiScalingHelperMixinWithoutInit
import gui.guiHelper
import gui
from gui import guiHelper
import globalPluginHandler
import globalVars
from logHandler import log
from NVDAObjects.IAccessible import IAccessible
from NVDAObjects.UIA import UIA
import NVDAObjects
from scriptHandler import script
import wx


# Security: disable the global plugin altogether in secure mode.
Expand Down Expand Up @@ -243,8 +244,8 @@ def __init__(self, eventHistory):
)
self.list.Bind(wx.EVT_LISTBOX, self.onListItemSelected)
contentsSizer.Add(self.list, flag=wx.EXPAND)
contentsSizer.AddSpacer(gui.guiHelper.SPACE_BETWEEN_VERTICAL_DIALOG_ITEMS)
self.description = gui.guiHelper.LabeledControlHelper(
contentsSizer.AddSpacer(guiHelper.SPACE_BETWEEN_VERTICAL_DIALOG_ITEMS)
self.description = guiHelper.LabeledControlHelper(
self,
# Translators: label for a read-only edit field displaying event properties.
_("Event\n&description"),
Expand All @@ -254,7 +255,7 @@ def __init__(self, eventHistory):
self.description.sizer.GetItem(self.description.control).SetProportion(1)
contentsSizer.Add(self.description.sizer, flag=wx.EXPAND)

mainSizer.Add(contentsSizer, border=gui.guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
mainSizer.Add(contentsSizer, border=guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
mainSizer.Fit(self)
self.SetSizer(mainSizer)
self.CentreOnScreen()
Expand Down

0 comments on commit 16d9506

Please sign in to comment.