Giter VIP home page Giter VIP logo

Comments (5)

Cooperoh avatar Cooperoh commented on July 17, 2024

same

from imagepy.

leiwang1023 avatar leiwang1023 commented on July 17, 2024

+1

from imagepy.

sheldonxxd avatar sheldonxxd commented on July 17, 2024

same, then I replace the wx.EXPAND to wx.RIGHT, the GUI could be displayed at least.
File "e:\program files\python38\env\imageprocessing\lib\site-packages\imagepy\ui\widgets\normal.py", line 283, in init
subsizer.Add( self.spin, 0, wx.ALIGN_CENTER|wx.BOTTOM|wx.EXPAND, 5 )
image

BUT there are still problems as below:

Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\histpanel.py", line 27, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\histpanel.py", line 24, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\cmappanel.py", line 48, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\cmappanel.py", line 35, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\histpanel.py", line 27, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\histpanel.py", line 24, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\cmappanel.py", line 48, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\cmappanel.py", line 35, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\curvepanel.py", line 43, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\curvepanel.py", line 40, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\curvepanel.py", line 43, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\curvepanel.py", line 40, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size
Traceback (most recent call last):
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\viewport.py", line 38, in on_size
    self.init_buf()
  File "c:\users\xxd\anaconda3\lib\site-packages\imagepy\ui\widgets\viewport.py", line 35, in init_buf
    self.buffer = wx.Bitmap(box.width, box.height)
wx._core.wxAssertionError: C++ assertion ""w > 0 && h > 0"" failed at ..\..\src\msw\bitmap.cpp(754) in wxBitmap::DoCreate(): invalid bitmap size

from imagepy.

strongsonn avatar strongsonn commented on July 17, 2024

+1

from imagepy.

yxdragon avatar yxdragon commented on July 17, 2024

Hi all, Sorry for not reply for a long time. as I can run with vs code successfully:
image
about the wx's error:
try the newest github's code and update wxpython!

from imagepy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.