Skip to content

Commit

Permalink
Update to pyforms v4
Browse files Browse the repository at this point in the history
  • Loading branch information
UmSenhorQualquer committed Oct 19, 2018
1 parent 00cd13b commit 1d19d13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/getting-started/multiple-windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ This window should inherit from the BaseWidget and People classes.
.. code:: python
import pyforms
from pyforms import BaseWidget
from pyforms.basewidget import BaseWidget
from pyforms.controls import ControlList
from People import People
from PersonWindow import PersonWindow
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting-started/the-basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Import the pyforms library, the BaseWidget and the Controls classes that you wil
.. code:: python
import pyforms
from pyforms import BaseWidget
from pyforms.basewidget import BaseWidget
from pyforms.controls import ControlText
from pyforms.controls import ControlButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def __init__(self, label="", default=0, max=100):

clean_menu = self.add_popup_submenu('Clean')

self.add_popup_menu_option('The current row', function_action=self.__cleanLine, submenu=clean_menu)
self.add_popup_menu_option('The current row', function_action=self.__cleanLine, menu=clean_menu)
self.add_popup_menu_option('-')
self.add_popup_menu_option('All graphs', function_action=self.__cleanCharts, submenu=clean_menu)
self.add_popup_menu_option('All graphs', function_action=self.__cleanCharts, menu=clean_menu)
self.add_popup_menu_option('-')
self.add_popup_menu_option('Everything', function_action=self.clean, submenu=clean_menu)
self.add_popup_menu_option('Everything', function_action=self.clean, menu=clean_menu)

def init_form(self):
# Get the current path of the file
Expand Down

0 comments on commit 1d19d13

Please sign in to comment.