On Jan 23, 1:59 am, George Oliver <[email protected]> wrote: > hi, I've recently been looking into different ways to do live code > reloading with Python (mainly for game development). Currently I use > an editor + pyglet and code reloading modules and it works well for > live updates of a running game. > > What I'm looking for help with now is figuring out an approach to > create a live code reloading pyglet IDE for developing a game. Similar > to a game maker program in the sense that you make a game inside a > visual program, but more like making a game with an editor plus > whatever libraries you want to use. The goal is to make the experience > smoother and less fractured than using multiple programs as I do now. > > My experience with writing GUI programs is basically nil so I'm not > sure what avenues to start exploring. One idea I had was to integrate > the Python binding of QtScintilla (for the editor) with pyglet -- is > that a viable approach? I'd like a cross-platform solution. > > Thanks for any advice.
Hey George, What currently triggers the action of your game re-importing the changed modules? Do you have a command or keystroke bound in your text editor? Or does the game itself detect when its source code files change? Or do you run a command from a terminal, quite separate from the editor and from the game? What I'm trying to get at is, what is it about the current set-up that is fractured, that you'd like to fix? I worry that your current vision is conflating two desires: The desire to seamlessly and conveniently trigger the re-importing of game modules when they change, plus the desire to write a GUI text editor / IDE. I don't yet understand why they are related. A GUI editor sounds like an awful lot of work as a solution to the problem of re-importing modules. Couldn't you just bind a keystroke to run a command? Have I misunderstood very much, or only a little? Best regards, Jonathan -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
