# Path: madesigner/madgui/combobox_nowheel.py
# class QComboBoxNoWheel(QComboBox):
#     def wheelEvent (self, event):
#         event.ignore()


import sys
from PyQt5.QtWidgets import (QApplication, QWidget,
                             QHBoxLayout, QVBoxLayout, QFrame, QFormLayout,
                             QPushButton, QTabWidget, QGroupBox,
                             QLineEdit, QTextEdit, QLabel, QScrollArea,
                             QInputDialog, QMenu, QMessageBox)
from .combobox_nowheel import QComboBoxNoWheel
        line1.setLayout( layout1 )
        layout.addWidget( line1 )

        line2 = QFrame()
        layout2 = QHBoxLayout()
        line2.setLayout( layout2 )
        layout.addWidget( line2 )

        layout1.addWidget( QLabel("<b>Width:</b> ") )

        self.edit_width = QLineEdit()
        self.edit_width.setFixedWidth(50)
        self.edit_width.textChanged.connect(self.onChange)
        layout1.addWidget( self.edit_width )

        layout1.addWidget( QLabel("<b>Y Pad:</b> ") )

        self.edit_ypad = QLineEdit()
        self.edit_ypad.setFixedWidth(50)
        self.edit_ypad.textChanged.connect(self.onChange)
        layout1.addWidget( self.edit_ypad )

        self.edit_start = QComboBoxNoWheel()
        self.edit_start.addItem("-")
        self.edit_start.addItem("1")
        self.edit_start.addItem("2")
        self.edit_start.addItem("3")
        self.edit_start.currentIndexChanged.connect(self.onChange)
        layout1.addWidget(self.edit_start)


# Path: madesigner/madgui/combobox_nowheel.py
# class QComboBoxNoWheel(QComboBox):
#     def wheelEvent (self, event):
#         event.ignore()


# Path: madesigner/madgui/build_tab_ui.py
import sys
from PyQt5.QtWidgets import (QApplication, QWidget,
                             QHBoxLayout, QVBoxLayout, QFrame, QFormLayout,
                             QPushButton, QTabWidget, QGroupBox,
                             QLineEdit, QTextEdit, QLabel, QScrollArea,
                             QInputDialog, QMenu, QMessageBox)
from .combobox_nowheel import QComboBoxNoWheel

        line1.setLayout( layout1 )
        layout.addWidget( line1 )

        line2 = QFrame()
        layout2 = QHBoxLayout()
        line2.setLayout( layout2 )
        layout.addWidget( line2 )

        layout1.addWidget( QLabel("<b>Width:</b> ") )

        self.edit_width = QLineEdit()
        self.edit_width.setFixedWidth(50)
        self.edit_width.textChanged.connect(self.onChange)
        layout1.addWidget( self.edit_width )

        layout1.addWidget( QLabel("<b>Y Pad:</b> ") )

        self.edit_ypad = QLineEdit()
        self.edit_ypad.setFixedWidth(50)
        self.edit_ypad.textChanged.connect(self.onChange)
        layout1.addWidget( self.edit_ypad )

        self.edit_start = QComboBoxNoWheel()
        self.edit_start.addItem("-")
        self.edit_start.addItem("1")
        self.edit_start.addItem("2")
        self.edit_start.addItem("3")
        self.edit_start.currentIndexChanged.connect(self.onChange)
        layout1.addWidget(self.edit_start)


        self.edit_end = QComboBoxNoWheel()