Skip to content

Instantly share code, notes, and snippets.

@ati
Created September 25, 2014 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ati/f68673b2e255a7a463a5 to your computer and use it in GitHub Desktop.
Save ati/f68673b2e255a7a463a5 to your computer and use it in GitHub Desktop.
Patch for missing DPI dialog in image sequence export
From ad88b0f68d2f5827ba0f53e2f83e78539b54cdb1 Mon Sep 17 00:00:00 2001
From: Alexander <ati@undev.ru>
Date: Thu, 25 Sep 2014 09:32:38 +0400
Subject: [PATCH] fix for missing EVT_NUM
---
src/dialogs_file.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/dialogs_file.py b/src/dialogs_file.py
index f43a0ca..768f65d 100644
--- a/src/dialogs_file.py
+++ b/src/dialogs_file.py
@@ -35,7 +35,7 @@ from matplotlib.ticker import ScalarFormatter
import numpy
from numpy.ma.core import masked
import wx
-from wx.lib.masked.numctrl import NumCtrl
+from wx.lib.masked.numctrl import NumCtrl,EVT_NUM
from constants import SAMPLE_RATE, TUNER
from events import Event
@@ -240,12 +240,12 @@ class DialogImageSize(wx.Dialog):
textWidth = wx.StaticText(self, label="Width (inches)")
self.ctrlWidth = NumCtrl(self, integerWidth=2, fractionWidth=1)
self.ctrlWidth.SetValue(settings.exportWidth)
- self.Bind(masked.EVT_NUM, self.__update_size, self.ctrlWidth)
+ self.Bind(EVT_NUM, self.__update_size, self.ctrlWidth)
textHeight = wx.StaticText(self, label="Height (inches)")
self.ctrlHeight = NumCtrl(self, integerWidth=2, fractionWidth=1)
self.ctrlHeight.SetValue(settings.exportHeight)
- self.Bind(masked.EVT_NUM, self.__update_size, self.ctrlHeight)
+ self.Bind(EVT_NUM, self.__update_size, self.ctrlHeight)
textDpi = wx.StaticText(self, label="Dots per inch")
self.spinDpi = wx.SpinCtrl(self)
--
1.8.5.2 (Apple Git-48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment