mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-09 14:46:06 -04:00
The next generation branch has been added
This commit is contained in:
@@ -1,3 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from translator import *
|
||||
import gui
|
@@ -17,11 +17,11 @@
|
||||
#
|
||||
############################################################
|
||||
import wx
|
||||
import translator
|
||||
from wxUI.dialogs import baseDialog
|
||||
|
||||
class translateDialog(wx.Dialog):
|
||||
class translateDialog(baseDialog.BaseDialog):
|
||||
def __init__(self):
|
||||
wx.Dialog.__init__(self, None, -1, title=_(u"Translate message"))
|
||||
super(translateDialog, self).__init__(None, -1, title=_(u"Translate message"))
|
||||
panel = wx.Panel(self)
|
||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||
staticSource = wx.StaticText(panel, -1, _(u"Source language"))
|
||||
@@ -38,7 +38,4 @@ class translateDialog(wx.Dialog):
|
||||
ok = wx.Button(panel, wx.ID_OK)
|
||||
ok.SetDefault()
|
||||
cancel = wx.Button(panel, wx.ID_CANCEL)
|
||||
self.SetEscapeId(wx.ID_CANCEL)
|
||||
|
||||
def onOk(self, ev):
|
||||
self.EndModal(wx.ID_OK)
|
||||
self.SetEscapeId(wx.ID_CANCEL)
|
Reference in New Issue
Block a user