Python Forum
draw chart in wx Frame
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
draw chart in wx Frame
#1
I have the following code as startup. I need to add an image place in the wx frame to draw stock chart on it.
I found many similar codes on Internet such as this link below but they draw chart on a popup window, not in a wx frame. Is there a way to do it? thanks.
https://matplotlib.org/examples/pylab_ex..._demo.html

import wx
import wx.grid
 
app = wx.App()
window = wx.Frame(None, -1, title='Test', size=(960, 850), pos = (-5, 0))
background = wx.Panel(window)
background.SetBackgroundColour("Blue")
 
grid = wx.grid.Grid(background, size=(312,150), pos=(0,0))
grid.CreateGrid(6,6)
 
window.Show()
app.MainLoop()
Reply


Messages In This Thread
draw chart in wx Frame - by ian - Jul-11-2017, 08:00 PM
RE: draw chart in wx Frame - by Larz60+ - Jul-11-2017, 09:57 PM
RE: draw chart in wx Frame - by ian - Jul-12-2017, 03:04 AM
RE: draw chart in wx Frame - by Larz60+ - Jul-12-2017, 09:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Scrollbar, Frame and size of Frame Maksim 2 9,044 Sep-30-2019, 07:30 AM
Last Post: Maksim
  [Tkinter] create and insert a new frame on top of another frame atlass218 4 11,178 Apr-18-2019, 05:36 PM
Last Post: atlass218
  [Tkinter] Frame size only works if frame is empty(Solved) Tuck12173 7 6,484 Jan-29-2018, 10:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020