On 3 Dec 2014, at 17:33, Wayne Boucher <[log in to unmask]<mailto:[log in to unmask]>> wrote:
The main requirement is to be a subclass of core/WindowDraw. That's what the printing does, for example, and if you were keen on Qt (or whatever) then that would be the way to go (although obviously all the dialogs are in Tk). But if you mean using Tk then quite probably subclassing WindowPopup (or WindowFrame) would be the way to go. (And we haven't tried this so if you subclassed WindowFrame likely you would hit the odd bug.)
Hi Wayne and All
questions (always questions ;-))
Firstly what is the difference between a windFrame and a widowpopup?
Secondly I am still stuck with the problem with SpectrumWindow the following macros demonstrates it nicely.
from ccpnmr.api.Analysis import SpectrumWindow
from ccpnmr.analysis.core import Util
def getArgServerProject(argServer):
return argServer.parent.project
def test_2(argServer):
top = argServer.parent
project = getArgServerProject(argServer)
analysisProject = Util.getAnalysisProject(project)
spectrumWindow = SpectrumWindow(analysisProject, name ='test22’)
running the script results in the following
[cid:74556BA3-D267-4F72-BB43-F3B08DDFF86A]
I guess the answer is to now go and attempt a direct subclass of windowDraw but unfortunately I appear to be stymied again as the constructor for windowDraw is def __init__(self, parent, windowPane)… so yet again I need a windowPane…. which is a SpectrumWindow
regards
gary
Wayne
On 3 Dec 2014, at 17:16, Gary Thompson wrote:
Hi wayne and all
a low level question is it possible to draw a spectrum in a class/widget that isn't a subclass of windowPopup...
if so can someone guide me ;-)
regards
gary
--
-------------------------------------------------------------------
Dr Gary Thompson [Leeds Biological NMR Facility]
Astbury Centre for Structural Molecular Biology,
University of Leeds,
Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
email: [log in to unmask]<mailto:[log in to unmask]> Fax +44-113-3431935
-------------------------------------------------------------------
--
-------------------------------------------------------------------
Dr Gary Thompson [Leeds Biological NMR Facility]
Astbury Centre for Structural Molecular Biology,
University of Leeds,
Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
email: [log in to unmask]<mailto:[log in to unmask]> Fax +44-113-3431935
-------------------------------------------------------------------
|