New answers tagged

2

This works for me: from PyQt4.QtGui import QGroupBox, QCheckBox, QDialog, QHBoxLayout d = QDialog() gb = QGroupBox("Groupbox") gb.setEnabled(False) cb = QCheckBox("Set active") l = QHBoxLayout(d) l.addWidget(gb) l.addWidget(cb) cb.stateChanged.connect(toggleGroupBox) def toggleGroupBox(state): if state > 0: gb.setEnabled(True) else: ...


1

I think this is what you're trying to do: import arcpy, itertools, os # Define the input and output workspaces arcpy.env.workspace = r"C:\Users\Jenny\roos" outws = r"C:\Users\Jenny\roos\gmehome.gdb" # List the fcs in your workspace my_pts = arcpy.ListFeatureClasses() DayList = [] # a shiny new empty list.. for ThisFC in my_pts: if ThisFC.upper()....



Top 50 recent answers are included