O'Reilly logo

WxPython Application Development Cookbook by Cody Precord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying dynamic data

In the previous two recipes in this chapter, we looked at how to work with GridTableBase to make a data source and considered some additional information about grid itself. In these previous examples, we worked with static data that was preloaded into the data table; however, in this recipe, we will work with a dynamic data source that can update grid dynamically when the data in the data source changes.

How to do it…

Perform the following steps for this recipe:

  1. First, let's import all the libraries we will need for this recipe, which are as follows:
    import os
    import stat
    import time
    import wx
    import wx.grid as gridlib
  2. Next, let's start by making a little data class to help put information about a file in a human readable format: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required