mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 19:16:03 +08:00
commit
b4233e092a
4
.gitignore
vendored
4
.gitignore
vendored
@ -6,4 +6,6 @@
|
|||||||
osx64-Cura-*
|
osx64-Cura-*
|
||||||
win32-Cura-*
|
win32-Cura-*
|
||||||
linux-Cura-*
|
linux-Cura-*
|
||||||
Printrun
|
Printrun
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import __init__
|
import __init__
|
||||||
|
|
||||||
import wx, os, sys, platform, types
|
import wx, wx.lib.stattext, os, sys, platform, types
|
||||||
|
|
||||||
from gui import validators
|
from gui import validators
|
||||||
from util import profile
|
from util import profile
|
||||||
@ -109,8 +109,11 @@ class SettingRow():
|
|||||||
self.configName = configName
|
self.configName = configName
|
||||||
self.panel = panel
|
self.panel = panel
|
||||||
self.type = type
|
self.type = type
|
||||||
|
|
||||||
self.label = wx.StaticText(panel, -1, label)
|
self.label = wx.lib.stattext.GenStaticText(panel, -1, label)
|
||||||
|
self.label.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
|
||||||
|
self.label.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouseExit)
|
||||||
|
|
||||||
getSettingFunc = profile.getPreference
|
getSettingFunc = profile.getPreference
|
||||||
if self.type == 'profile':
|
if self.type == 'profile':
|
||||||
getSettingFunc = profile.getProfileSetting
|
getSettingFunc = profile.getProfileSetting
|
||||||
@ -129,13 +132,6 @@ class SettingRow():
|
|||||||
sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|wx.EXPAND)
|
sizer.Add(self.ctrl, (x,y+1), flag=wx.ALIGN_BOTTOM|wx.EXPAND)
|
||||||
sizer.SetRows(x+1)
|
sizer.SetRows(x+1)
|
||||||
|
|
||||||
if os.name == 'darwin':
|
|
||||||
self.ctrl.Bind(wx.EVT_SET_FOCUS, self.OnMouseEnter)
|
|
||||||
self.ctrl.Bind(wx.EVT_KILL_FOCUS, self.OnMouseExit)
|
|
||||||
else:
|
|
||||||
self.ctrl.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
|
|
||||||
self.ctrl.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouseExit)
|
|
||||||
|
|
||||||
self.defaultBGColour = self.ctrl.GetBackgroundColour()
|
self.defaultBGColour = self.ctrl.GetBackgroundColour()
|
||||||
|
|
||||||
panel.main.settingControlList.append(self)
|
panel.main.settingControlList.append(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user