Re: [Tutor] General method for creating a partitioned window
I am using wxPython and OpenGL, although I would prefer to run a script in Maya, but this does not seem efficient for what I want to do, since maya only allows for 3-D visualization, not simultaneous 2-D/3-D viewing (i.e., side-by-side) On Thu, Aug 4, 2011 at 7:37 PM, Alan Gauld alan.ga...@btinternet.comwrote: On 04/08/11 20:52, Shwinn Ricci wrote: Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI window frames? I do not have my code with me right now, I can post as soon as I have access to it. You need to give yus more detail. This kind of thing is very GUI frame-work specific. Are you using Tkinter? wxPython?, Cocoa on MacOSX? They are all different. And because you want to do graphics you also need to tell us what graphics toolkit you are using? OpenGL? Something else? Or are you trying to script Blender or Maya or some other 2D/3D modelling tool? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ __**_ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/**mailman/listinfo/tutorhttp://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] General method for creating a partitioned window
Am 09.08.2011 16:44, schrieb Shwinn Ricci: I am using wxPython and OpenGL, although I would prefer to run a script in Maya, but this does not seem efficient for what I want to do, since maya only allows for 3-D visualization, not simultaneous 2-D/3-D viewing (i.e., side-by-side) On Thu, Aug 4, 2011 at 7:37 PM, Alan Gauld alan.ga...@btinternet.com mailto:alan.ga...@btinternet.com wrote: On 04/08/11 20:52, Shwinn Ricci wrote: Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI window frames? You would need one frame (or widget) with an opengl context with 2 independent viewports. I don't think that's supported by any framework. You probably have to use two widgets. But that's no problem, as long as you can use layouts and styles to get the desired appearance of the two widgets (i.e. to make them appear as one). I do not have my code with me right now, I can post as soon as I have access to it. You need to give yus more detail. This kind of thing is very GUI frame-work specific. Are you using Tkinter? wxPython?, Cocoa on MacOSX? They are all different. And because you want to do graphics you also need to tell us what graphics toolkit you are using? OpenGL? Something else? Or are you trying to script Blender or Maya or some other 2D/3D modelling tool? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _ Tutor maillist - Tutor@python.org mailto:Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/__mailman/listinfo/tutor http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] General method for creating a partitioned window
On 09/08/11 15:44, Shwinn Ricci wrote: I am using wxPython and OpenGL, I don't know anything about how OpenGL works with wxPython. However in general one of the following strategies should work: 1) Create composite panel containing two child panels side by side. Create your graphics in the child panels using the OpenGL library. 2) Create a single panel and general two images using OpenGL and then blit those two images side by side on the panel. Hopefully somebody with more OpenGL experience can give more direct help... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] General method for creating a partitioned window
Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI window frames? See SplitterWindow http://www.wxpython.org/docs/api/wx.SplitterWindow-class.html OR http://www.wxpython.org/docs/api/wx.lib.splitter.MultiSplitterWindow-class.html Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] General method for creating a partitioned window
Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI window frames? I do not have my code with me right now, I can post as soon as I have access to it. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] General method for creating a partitioned window
On 04/08/11 20:52, Shwinn Ricci wrote: Say I want one half of a 720 x 480 window be dedicated for creating a 2-D structure, and the other half for a 3-D structure. There would be a line 1 or 2 pixels thick straight down the window that would divide the two sectors. How does one go about doing this without creating two separate GUI window frames? I do not have my code with me right now, I can post as soon as I have access to it. You need to give yus more detail. This kind of thing is very GUI frame-work specific. Are you using Tkinter? wxPython?, Cocoa on MacOSX? They are all different. And because you want to do graphics you also need to tell us what graphics toolkit you are using? OpenGL? Something else? Or are you trying to script Blender or Maya or some other 2D/3D modelling tool? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor