Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Grid. How to close the cell editor?
Post: RE: Grid. How to close the cell editor?

It solved my problem class GridCellColourEditor(wx.grid.GridCellEditor): def Create(self, parent, id, evtHandler): self._parent = parent self._colourDialog = None self._c...
ioprst GUI 1 2,602 Dec-03-2019, 09:28 AM
    Thread: Grid. How to close the cell editor?
Post: Grid. How to close the cell editor?

How to implement closing your own cell editor when it loses focus? Since the built-in wx editors work. Now my editor closes only if you select another cell in the grid. #!/usr/bin/env python # -*- c...
ioprst GUI 1 2,602 Dec-02-2019, 07:42 AM
    Thread: Why does an error occur after editing a grid cell?
Post: RE: Why does an error occur after editing a grid c...

It solved my problem Table: class StateTable(CustomTable): ... def _updateColAttrs(self, grid): for row in range(self.GetNumberRows()): for col in range(self.GetNumberC...
ioprst GUI 2 2,809 Nov-12-2019, 08:27 AM
    Thread: Why does an error occur after editing a grid cell?
Post: Why does an error occur after editing a grid cell?

There is a dialogue on which there is a panel on which there is a grid. Each grid column is assigned its own editor (in a class derived from GridTableBase) class StatePanel(wx.Panel): def __ini...
ioprst GUI 2 2,809 Nov-06-2019, 07:25 AM
    Thread: Return code when closing the dialog
Post: Return code when closing the dialog

There is own dialogue which is inherited from wx.Dialog. There is one button: button_ok = wx.Button (self, wx.ID_OK, "OK")Buttons with identifier wx.ID_CANCEL no. Why, when I close the dialog throu...
ioprst GUI 1 3,198 Aug-13-2019, 06:50 AM
    Thread: cefpython3. JS and Python connection
Post: cefpython3. JS and Python connection

Python 3.4. GUI - wxPython. It is necessary to calculate the size of the text in pixels declared in the SVG document. <svg viewBox="0 0 {width} {height}" xmlns="http://www.w3.org/2000/svg" id="svg"...
ioprst General Coding Help 0 2,290 Jan-30-2019, 09:04 AM
    Thread: Script execution
Post: RE: Script execution

Solution: library "cefpython3". Allows you to insert your browser (chromium) in wxPython.
ioprst GUI 2 2,049 Jan-29-2019, 01:12 PM
    Thread: Script execution
Post: Script execution

Why can't the script run completely (the script works in a normal browser)? Marked the comment "no". And the SVG is not displayed on the page. I need through Python to determine the size of the svg-el...
ioprst GUI 2 2,049 Jan-28-2019, 12:14 PM
    Thread: SpinCtrl. Pop-up warning
Post: RE: SpinCtrl. Pop-up warning

I think the answer to the question: wx.adv.RichToolTip.
ioprst GUI 3 2,843 Sep-11-2018, 12:52 PM
    Thread: SpinCtrl. Pop-up warning
Post: RE: SpinCtrl. Pop-up warning

Thanks for the answer. Such an idea was already there. I would not want to force the user to click "OK" every time. Therefore, I seek a solution with a warning.
ioprst GUI 3 2,843 Sep-11-2018, 11:33 AM
    Thread: SpinCtrl. Pop-up warning
Post: SpinCtrl. Pop-up warning

There is an object wx.SpinCtrl: self.m_spinCtrl_width = wx.SpinCtrl(self.panel, -1, self.width, style=wx.SP_ARROW_KEYS | wx.TE_PROCESS_ENTER, max=max_)This object has such a feature that if the parame...
ioprst GUI 3 2,843 Sep-10-2018, 07:40 AM
    Thread: List of URLs. wx.richtext.RichTextCtrl
Post: List of URLs. wx.richtext.RichTextCtrl

There is an object: import wx.richtext as rt ... self.m_textCtrl_text = rt.RichTextCtrl(self.panel, -1, self.text, wx.DefaultPosition, (500, 100))Periodical I insert in it hyperlinks: urlStyle = rt....
ioprst GUI 0 1,896 Aug-06-2018, 07:47 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020