Note that there are some explanatory texts on larger screens.

plurals
  1. POEmbed matplotlib in Quickly app?
    primarykey
    data
    text
    <p>I am new to programming in general and Quickly as a consequence. I would like to embed a Matplotlib graph into my Quickly application. I found some examples of how to do it with general pyGTK application, but I am not sure, how to use them with Quickly... I at least need matplotlib window to stop inactivating the main window.</p> <p>I would be glad if you could help me with it and tell, what I would need to change in standard embedding code. The official example of that is <a href="http://matplotlib.org/examples/user_interfaces/embedding_in_gtk.html" rel="nofollow">here</a> I just do not understand, how to apply it here...</p> <p>I use Glade to design the interface, Quickly uses pygobject, not pyGTK, those are the main problems.</p> <p>NEW:</p> <p>I have found <a href="https://github.com/JackKelly/matplotlib/commit/a496ef152b497463b73689fe87e13fbbc90df913" rel="nofollow">this</a> And also as it seems I would have to use file <strong>init</strong>.py here, not the main file with all my code. It looks like this:</p> <pre><code># -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ''' Some licensing information ''' import optparse import locale from locale import gettext as _ locale.textdomain('chromograph') from gi.repository import Gtk # pylint: disable=E0611 from chromograph import ChromographWindow from chromograph_lib import set_up_logging, get_version def parse_options(): """Support for command line options""" parser = optparse.OptionParser(version="%%prog %s" % get_version()) parser.add_option( "-v", "--verbose", action="count", dest="verbose", help=_("Show debug messages (-vv debugs chromograph_lib also)")) (options, args) = parser.parse_args() set_up_logging(options) def main(): 'constructor for your class instances' parse_options() # Run the application. window = ChromographWindow.ChromographWindow() window.show() Gtk.main() </code></pre> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload