Hi Wayne and all
I have had a try but go a bit stuck…
I was trying to create a custom Frame of the form
class TestFrame(Frame,WindowDraw):
…
however WindowDraw has an __init__ method of the form
WindowDraw.__init__(self, parent, windowPane)
and I am not sure where I get a windowPane from…. what it certainly seems is that I don’t want to have a ccpnmr.api.Analysis.SpectrumWindow as this just opens a new window complete with top panel etc Of course I could try and duck type it… but that doesn’t feel right...
anyway…
all help gratefully received as usual
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
-------------------------------------------------------------------
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.)
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
-------------------------------------------------------------------
|