473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Pure Python GUI lib?

For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
we can use it under pythons of different version. Is it possible?
I don't like to update the module for different python and the module

Currently, I am writing the interface to
iup(http://www.tecgraf.puc-rio.br/iup) via ctypes, but find 2 too
strange things which have let me feel blue for some days, and I don't
know whether it can be successful or not. Can anyone give me some
lights? Thank you. :)

You can download the files at http://pyguiviactypes.googlepages.com/mini_bug.zip
I am using python 2.5.1 on win2k with sp4

1. in iup.py, if I delete
Expand|Select|Wrap|Line Numbers
  1. _IupMap.argtypes= [
  2. PTR_Ihandle,    #ih
  3. ]
  4.  
then when I choose the menu "MDI-New", no MDI window come out. Why it
behaves like this?

2. for most of the time, I can only choose menu "MDI-New" 3~4 times,
then it crashes with this msg:
[msg]
Traceback (most recent call last):
File "\loewis\25\python\Modules\_ctypes\callbacks.c ", line 206, in
'calling callback function'
File "mdisample_callback.py", line 372, in mdi_new IupShow(dlg)
File "H:\my_project\iup4py\mini\iup\iup.py", line 434, in IupShow
ih,
WindowsError: exception: access violation writing 0x72292AA4
Traceback (most recent call last):
File "mdisample_callback.py", line 455, in <module>
main()
File "mdisample_callback.py", line 447, in main
IupMainLoop()
File "H:\my_project\iup4py\mini\iup\iup.py", line 247, in IupMainLoop
return _IupMainLoop()
WindowsError: exception: access violation writing 0x9B73F12E
[/msg]

sometimes the above happens when I delete some "???.argtypes=???" form iup.py

3. and some time, python crashes with this msg:
[msg]
Traceback (most recent call last):
File "mdisample_callback.py", line 455, in <module>
main()
File "mdisample_callback.py", line 447, in main
IupMainLoop()
File "H:\my_project\iup4py\mini\iup\iup.py", line 247, in IupMainLoop
return _IupMainLoop()
WindowsError: exception: priviledged instruction
[/msg]
Dec 22 '07 #1
2 2317
For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
we can use it under pythons of different version. Is it possible?
The python-xlib project provides such a module. It implements the X11
protocol directly.

Regards,
Martin
Dec 22 '07 #2
On Dec 22, 7:31 am, oyster <lepto.pyt...@gmail.comwrote:
For the word "Pure", I mean it is not a C/C++/Z++.. extension, so that
we can use it under pythons of different version. Is it possible?
I don't like to update the module for different python and the module

Currently, I am writing the interface to
iup(http://www.tecgraf.puc-rio.br/iup) via ctypes, but find 2 too
strange things which have let me feel blue for some days, and I don't
know whether it can be successful or not. Can anyone give me some
lights? Thank you. :)

You can download the files athttp://pyguiviactypes.googlepages.com/mini_bug.zip
I am using python 2.5.1 on win2k with sp4
<snip>

While wxPython may not be pure (per se), it DOES offer some MDI
interfaces. And it works with 2.3 - 2.5. I would think that that would
be good enough for the purposes you mention in your post.

Mike
Dec 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ravi | last post by:
Hi, I did some googling, and found that there doesn't seem to be a pure python MySQL communication module. There is one for perl however, Net::MySQL. I was wondering if there was a specific...
11
by: Brett C. | last post by:
For my thesis (once the bloody thing stops throwing bugs at me) I am going to need to collect stats on the frequency that atomic types in local variables are applied to various opcodes and methods....
1
by: David Mertz, Ph.D. | last post by:
I decided to write a pure Python hashcash implementation. I have seen David McNab's Python implementation. Unfortunately, as near as I can tell (which is supported on the hashcash mailing list...
15
by: Christos TZOTZIOY Georgiou | last post by:
Has anyone built PIL (1.1.4 or 1.1.5) for Python 2.4? If yes, please let me know, since I can't test a couple of my apps using PIL with 2.4 . You can even reply by email (yes, I dare use true...
3
by: andrew.fabbro | last post by:
I'm looking for an implementation of AES (the Advanced Encryption Standard) in pure Python. I'm aware of pycrypto, but that uses C code. I'm hoping to find something that only uses Python...I'm...
5
by: Fuzzyman | last post by:
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer...
13
by: Steven Bethard | last post by:
Jean-Paul Calderone <exarkun@divmod.comwrote: Interesting. Could you give a few illustrations of this? (I didn't run into the same problem at all, so I'm curious.) Steve
12
by: betabrain.honshu | last post by:
Hi Folks, for those of you who are familiar with the micropledge.com project, here is a good opportunity to spend or earn something: http://micropledge.com/projects/pysalsa20 I know that the...
28
by: n00m | last post by:
Both codes below read the same huge(~35MB) text file. In the file 1000000 lines, the length of each line < 99 chars. Stable result: Python runs ~0.65s C : ~0.70s Any thoughts?
8
by: Roy Smith | last post by:
Does there exist a pure Python version of a MySQL module? I've got a data logging application that needs to run on a whole bunch of OSs, ranging from Windows to a dozen different unix flavors on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.